I want to pass 4 values in as ARGS. SEGMENT, FIELD, EVAL, CRITERIA
they would like something like this: OBR, 4, ==, HELLO
in my proc I have:
if {$SEGMENT_$FIELD $EVAL $crit} {
echo “meets the IF: Remove it”
lappend dispList “KILL $mh”
I get this error: syntax error in expression “$SEGMENT_$FIELD $EVAL $crit”: extra tokens at end of expression
It wont use the $EVAL as an actual operator / evaluator. If I replace the variable with an actual == or >, etc it works as expected.
Thanks for any insight.