mIRC Home    About    Download    Register    News    Help

Print Thread
#39412 03/08/03 02:05 PM
Joined: Jul 2003
Posts: 742
MTec89 Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Jul 2003
Posts: 742
[eidt] never mind, i figured it out, but mirc -DOES- need support for longer $iif statements, its bogus i cant use $iif statements as i need to.


can an $iif statement be placed in another $iif statement?

heres my original $iif statement
Code:
$iif(%si.sp.server == 1,%si.leftbrac $+ Server: $scid($activecid).server $+ : $port $+ %si.rightbrac $+ , )


heres what im not sure about
Code:
$iif(%si.sp.server == 1,%si.leftbrac $+ Server: $iif($scid($activecid).server != $null, on $scid($activecid).server $+ : $+ $port,[Not Connected])
 $+ %si.rightbrac $+ , )

Last edited by MTec89; 03/08/03 03:03 PM.

http://MTec89Net.com
irc.freenode.net #MTec89Net
#39413 03/08/03 04:42 PM
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
The length of $iif() is only subject to the line length limitations that exist throughout mIRC. If that's not long enough for you then use /if.


Spelling mistakes, grammatical errors, and stupid comments are intentional.
#39414 03/08/03 05:10 PM
Joined: Jul 2003
Posts: 742
MTec89 Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Jul 2003
Posts: 742
yeah i suppose so, but that needs changed also!...


http://MTec89Net.com
irc.freenode.net #MTec89Net
#39415 03/08/03 06:24 PM
Joined: Dec 2002
Posts: 117
R
Vogon poet
Offline
Vogon poet
R
Joined: Dec 2002
Posts: 117
How about using $& to split the line up? /help $& (all the way down on the bottom of the page)


$input(Me like stars, You too?)

Link Copied to Clipboard