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
72
S
22
G
288
Posts: 3,862
Reputation: 158,460


Return to How do I....?

Who is online

Users browsing this forum: Proxymity and 8 guests