zipppo 0 Posted February 12, 2011 (edited) I have three variables the first 2 contain a number the third one is + or - how would i set up a problem that is 15 + or - 12 variable1 variable3 variable2 = variableanswer Thanks ahead of time Edit for the example 15 is var1 +or- is var3 and 12 is var2. Edited February 12, 2011 by zipppo Share this post Link to post Share on other sites
reb 29 Posted February 12, 2011 You can do it this way. $var1 = 15 $var2 = "-" $var3 = 12 if $var2 = "+" then MsgBox(0,"",$var1 + $var3) else MsgBox(0,"",$var1 - $var3) EndIf MEASURE TWICE - CUT ONCE Share this post Link to post Share on other sites