mIRC Homepage
Posted By: keeker $iff() problem - 18/02/03 06:07 AM
i have the following lines in a channel popup, but i cant get them to show, what am i doing wrong?
Code:
  . $iff(%quiet == on,Turn OFF Quiet Play) :set %quiet off | echo -a Quiet Play is now OFF
  . $iff(%quiet == off,Turn ON Quiet Play) :set %quiet on | echo -a Quiet Play is now ON

what i want it to do is if %quiet is on , set it off and vice-versa. i can type //echo -a $iff(%quiet == on,Turn OFF quiet play) and it will echo it, but i cant get it in the popups
Posted By: Nobodi Re: $iff() problem - 18/02/03 07:48 AM
$iif tends to work better than $iff

Code:

 . $iif(%quiet == on,Turn OFF Quiet Play) :set %quiet off | echo -a Quiet Play is now OFF 
 . $iif(%quiet == off,Turn ON Quiet Play) :set %quiet on | echo -a Quiet Play is now ON
Posted By: Jerk Re: $iff() problem - 18/02/03 07:48 AM
Try $iif instead wink

Heh, a couple seconds too late on the reply blush
Posted By: keeker Re: $iff() problem - 18/02/03 11:51 PM
DOH it was only something THAT simple? Man, i need a scripting checker smile
Posted By: The_Game Re: $iff() problem - 18/02/03 11:59 PM
It happens LOL
Posted By: _D3m0n_ Re: $iff() problem - 19/02/03 12:04 AM
that would be a really nice option to ask for ..... something that checks ur scripts while ur creating them ..... id like to see something like that eventually...... would make things alot easier to find .....
© mIRC Discussion Forums