Moltisanti
Member
Hi, I'm kinda new in GameMaker Studio and in programming in general, and I'm stuck with something that probably is a very simple thing.
If I have an array with multiple math operation elements (numbers and strings with symbols), like [8, "+", 9, "*", 3], can I somehow convert it into the actual operation? In this case it would be 8+9*3, so if I store it in a variable I want the value of that variable to be the result of the operation (51 in this case).
Thanks in advance!
If I have an array with multiple math operation elements (numbers and strings with symbols), like [8, "+", 9, "*", 3], can I somehow convert it into the actual operation? In this case it would be 8+9*3, so if I store it in a variable I want the value of that variable to be the result of the operation (51 in this case).
Thanks in advance!