08-03-2018 03:59 PM
The inequality operator != is not working as expected with a logical boolean statement.
I have 2 numeric local variables:
Local.X = 80
Local.Y = 80
In an IF statement I have:
(Locals.X != 80) && (Locals.Y == 80)
If this Locals.X is not 80 and Locals.Y is equal to 80 then prompt the user a message.
My problem is when Locals.X = 80 and Locals.Y=80 the IF Statement runs to prompt the user the message when it should not.
Do I have a syntax issue? Thanks!
08-03-2018 04:12 PM
Hey,
I tested your code and did not observe your behavior. How are you setting your locals? Can you share the snippet of code that is not working?
08-04-2018 05:33 PM
I also tried it out and did not see an issue. I also think it would help if you posted your code.
Some things you might want to look at:
-how the representation is set for your local variables
-how you set the numeric format for your local variables