Thanks for the help, but I already solved my problem using what Slay3R? said. And those were placeholder name. I would slapped myself it they weren't too.
you would have to make it into three substrings, one for each number, then apply the mathematical symbol based on an if-then-else-if-else-if... for however many different math symbols you might have...
OR you can just go easier on yourself and just not have entire equations in string form before you convert them to ints? :tongue.gif:
Message me for custom mod/plugin requests
What exactly are you trying to do?
I am trying to get the string "2-5" to become an integer of -3 because 2 - 5 = -3.
Message me for custom mod/plugin requests
lol.
Also I hope those are placeholder names and you aren't actually naming your variables STRING and INT or imma slap you.
Message me for custom mod/plugin requests
OR you can just go easier on yourself and just not have entire equations in string form before you convert them to ints? :tongue.gif: