mIRC Home    About    Download    Register    News    Help

Print Thread
Page 2 of 2 1 2
Riamus2 #194975 14/02/08 04:44 PM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
Quote:
Technically speaking, an ELSEIF is really just an ELSE followed by a "nested" IF.
Technically speaking that's not quite correct :P

ELSEIF and ELSE IF are indeed equivalent in mirc, but they are not equivalent to ELSE { IF() {} }. The difference is that you can have two or more ELSEIFs or ELSE IFs but never more than one ELSEs, for example:

//if (0) echo a | elseif (0) echo b | elseif (1) echo works

//if (0) echo a | else if (0) echo b | else if (1) echo works

//if (0) echo a | else { if (0) echo b } | else { if (1) echo doesn't work }

I'm sure you know that already, and your example code seems to imply this, just making it clear to those who don't.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
qwerty #194977 14/02/08 05:08 PM
Joined: Mar 2006
Posts: 395
T
The_JD Offline OP
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
T
Joined: Mar 2006
Posts: 395
Yeh, That's cool!


[02:16] * Titanic has quit IRC (Excess Flood)
Page 2 of 2 1 2

Link Copied to Clipboard