Quote:
Sorry, off-topic question, but.. why is the second more efficient?

Are you saying that if the ($nick isop $chan) bit were false, mirc wouldn't bother checking whether (!allow * iswm $1-)
is true? (and since we only want it checking the second bit only while we are opped, it's more efficient?)

I always thought that whatever you put after the IF would get evaluated and checked regardless, hence order would make no difference.


As soon as the if condition can be defined as false or true no further testing of conditions is done.

example
alias x1 { echo -a x1 $1 | return $false }
alias x2 { echo -a x2 $1 | return $true }
alias x3 { echo -a x3 $1 | return $false }
alias test { if (($x1(a) == $x2(b)) || ($x2(c) == $x2(d)) || ($x1(e) == $x3(f))) { echo -a IF conditions met } }

/test
x1 a
x2 b
x2 c
x2 d
IF conditions met

evaluation of ($x1(e) == $x3(f)) never occurs, this is the most common method of if evaluation of any language I know of.