Shouldn't that be
if ( eval "\$consumption $operator" )
I doubt the existance of a need to stringify and evaluate the contents of $consumption.
In reply to Re^2: Using dynamic operators in an if() statement
by ikegami
in thread Using dynamic operators in an if() statement
by captkirk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |