/newif problem

A forum for reporting bugs NOT related to custom plugins.

Moderator: MacroQuest Developers

ml2517
a grimling bloodguard
a grimling bloodguard
Posts: 1216
Joined: Wed Nov 12, 2003 1:12 am

/newif problem

Post by ml2517 » Thu Apr 08, 2004 9:57 pm

Lax:

This comparison isn't working. I haven't went through all of the others yet but I verified that this isn't working.

Code: Select all

#turbo

Sub Main
/declare Flag global
/varset Flag 0
/newif @Flag!=1 {
    /echo GOT HERE
} else {
    /echo DIDN'T GET THERE
}
/return
Also you need to change your => operator to >= in the documentation. (At least in the introduction doc, didn't check the rest.) => just spits out a parsing error.

ml2517
a grimling bloodguard
a grimling bloodguard
Posts: 1216
Joined: Wed Nov 12, 2003 1:12 am

Post by ml2517 » Thu Apr 08, 2004 10:20 pm

Also if you want a nice simple example of multiple comparisons to show people this seems to work fine:

Code: Select all

#turbo

Sub Main
/declare Flag global
/varset Flag 5
/newif (((@Flag>0)&&(@Flag<3))||(@Flag==5)) {
    /echo GOT HERE
} else {
    /echo DIDN'T GET THERE
}
/return