WatchNon-threaded

Forums » Bugs & Problems » Read Message

Although it's highly unlikely you will find them, post reports about problems or bugs in here.

">" Not working with "AND"

8 days ago

The ">" and "<" symbols seem to work fine on their own. For example:

IF %VARIABLE1 >= 1 THEN

%VARIABLE3 := 1

This works. But it doesn't work whenever "AND" is used in the code. So:

IF %VARIABLE1 >= 1 AND %VARIABLE2 = 1 THEN

%VARIABLE3 := 1

This doesn't work. Have to use a BEGIN/END thingy to get around it.

">" Not working with "AND"

8 days ago
AND has never that been reliable.

">" Not working with "AND"

8 days ago

Replace that "AND" with "THEN IF".

IF %VARIABLE1 >= 1 THEN IF %VARIABLE2 = 1 THEN

%VARIABLE3 := 1

 

">" Not working with "AND"

8 days ago
Awh! Didn't know you can do that. ^_^

">" Not working with "AND"

8 days ago

IF - THEN - ELSE = 2 Gr8 2 H8

">" Not working with "AND"

8 days ago
I mean he's just doing nested if statements:

IF %VARIABLE1 >= 1 THEN
IF %VARIABLE2 = 1 THEN
%VARIABLE3 := 1

">" Not working with "AND"

8 days ago

Exactly.  I just like to have it on the same line if its a comparison.  Some people might think that's bad practice.  Simple solutions are always best.

">" Not working with "AND"

7 days ago
Still sounds very much like a bug to me.

">" Not working with "AND"

7 days ago

Agreed.

">" Not working with "AND"

7 days ago
You mean, like this?

">" Not working with "AND"

7 days ago
Deja Vu~