Page 1 of 1

if then question

Posted: Mon Sep 27, 2004 1:39 am
by EQBot_man
How does one properly do this withint he confines of the MQ2 Syntaxs?:

/if ( (Statement A and STatement B) OR (Statement A and Statement D) )

Posted: Mon Sep 27, 2004 2:02 am
by Falco72
An example

Code: Select all

/if ((${Me.PctMana} && !${Me.PctHPs}) || (!${Me.PctMana} && ${Me.PctHPs})) {
&& means AND
|| means OR

Use () to group conditions two by two.