How do I Evaluate Mixed Type Math Function

Get help using Construct 2

Post » Fri May 30, 2014 6:54 pm

I'm having trouble evaluating a mixed type math function. What I doing is the following:

ResultNumber = NumberVariable1 & OperatorString & NumberVariable2
NumberType NumberType StringType NumberType

When I try to evaluate the expression, it gives incorrect results.

Any help will be greatly appreciated.
B
9
S
1
Posts: 8
Reputation: 1,043

Post » Fri May 30, 2014 7:18 pm

You can't do that. You'll have to decode your operator string and call the appropriate math operator explicitly.
ImageImageImage
B
71
S
21
G
231
Posts: 3,695
Reputation: 129,366


Return to How do I....?

Who is online

Users browsing this forum: tarek2 and 59 guests