Solved

# Easy question on storing math operations in variables

Posted on 2003-02-24

I have 3 variables, they are all chars right now but that may have to be switched.

First <---contains a number

Second <--- contains a number

Op <--- contains an operation ( + - / * )

I want to do the following:

answer = second op first

Example: 5 = 3 + 2

Thus all the info needed are in three vars, but I have to make them know that they have to do a math operation between them.

I am thinking either that there is a simple way (like syntax ) to do this or that I have to make a function that will do this.