mIRC Home    About    Download    Register    News    Help

Topic Options
#265224 - 19/03/19 08:25 PM $iif bug maybe?
Wikked Offline
Pikka bird

Registered: 24/05/16
Posts: 11
Loc: USA
//echo -a $iif(United States of America,United States of America,USA)

returns

* /if: 'States' unknown operator
* /if: 'States' unknown operator
* /if: 'States' unknown operator
* /if: 'States' unknown operator
* /if: 'States' unknown operator

Top
#265225 - 19/03/19 09:21 PM Re: $iif bug maybe? [Re: Wikked]
maroon Offline
Hoopy frood

Registered: 12/01/04
Posts: 1151
nope, not a bug. you're putting multiple things into the conditional parameter, so it's trying to evaluate the conditional. If you don't want to evaluate multiple terms, then just put 1 term there:

Code:
//echo -a $iif( $+(United States of America) ,$v1,$v2)
//echo -a $iif($left(United States of America,999),$v1,$v2)

Top
#265228 - 20/03/19 04:44 AM Re: $iif bug maybe? [Re: maroon]
Wikked Offline
Pikka bird

Registered: 24/05/16
Posts: 11
Loc: USA
ahh, duh. ty

Top