Hi,
Is it possible to use a variable to return an operator (or also a string). Example of part of code below:
IF opVar = 1 THEN
myOperator = >
ELSIF opVar = 2 THEN
myOperator = <
ENDIF
For this opVAR would be a variable set in ‘Variable optimization’ and myOperator could be used elsewhere in the code where I wanted to check different results based on less than or greater than.
Thanks
Hi Paul
Great question – math operators can’t be used as variables.
You could try and code the conditions to +1 or -1 from the myoperator variable based on prior conditions and take it from there. If that makes sense.
Cheers
Thanks grizzly… yep, will rewrite code and use conditions as you mentioned.