hello monks,
i am trying to store operators in a variable and then use the variable as the operator in a condition.
e.g
$op = "eq"; if($somvar $op "some text"){ #do this }
have tried many techniques to interpolate the variable and have had no luck. any ideas.
thanks
20040720 Janitored by Corion: Added formatting
In reply to interpolating a variable into an operator by mlhii
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |