mIRC Home    About    Download    Register    News    Help

Print Thread
#164584 13/11/06 09:52 PM
Joined: Jul 2006
Posts: 242
H
HaleyJ Offline OP
Fjord artisan
OP Offline
Fjord artisan
H
Joined: Jul 2006
Posts: 242
Hi i have noticed that using $iif with highlights does not work. Any ideas. I wanted some advice first before posting in the bugs section didn't want to be hasty.

Code:
alias test {
  $iif($1 == 2, echo -a yes, echo -a 0,1no) 
}  


dosent work


Newbie
#164585 13/11/06 10:07 PM
Joined: Nov 2004
Posts: 842
Hoopy frood
Offline
Hoopy frood
Joined: Nov 2004
Posts: 842
Try:

Code:
alias test {
  $iif($1 == 2, echo -a yes, echo -a 0 $+ $chr(44) $+ 1no)
}


This is because the comma in the colours is being read as the end of the false statement.

Syntax: $iif(Condition,True,False) ... hence why it wasn't working.

Last edited by Jigsy; 13/11/06 10:28 PM.

What do you do at the end of the world? Are you busy? Will you save us?
#164586 13/11/06 10:37 PM
Joined: Jul 2006
Posts: 242
H
HaleyJ Offline OP
Fjord artisan
OP Offline
Fjord artisan
H
Joined: Jul 2006
Posts: 242
thankyou
i Realized mIRC detected , as the end of a false but i thought it should distinguish between just a , and a , with colours.
Anyways lovely work around and thanks again


Newbie
#164587 13/11/06 10:41 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
mIRC is great, but it isn't quite that intuitive. A comma is a comma ... period. smile


Invision Support
#Invision on irc.irchighway.net

Link Copied to Clipboard