|
newby Newbie
Joined: 27 Oct 2003 Posts: 4 Location: USA
|
Posted: Mon Oct 27, 2003 4:05 pm
Treat variable as operator |
Is there a way to treat a variable as an operator?
I assigned +,-,*,/ to a list but if I use them they are treated as strings instead of an operator. |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Mon Oct 27, 2003 5:09 pm |
Use %eval:
%eval(%concat("5 ", @operator, " 7")) |
|
|
|
newby Newbie
Joined: 27 Oct 2003 Posts: 4 Location: USA
|
Posted: Mon Oct 27, 2003 5:20 pm |
That worked!Thanks a lot for the quick response!
|
|
|
|
|
|