mIRC Homepage
Posted By: Wikked $iif bug maybe? - 19/03/19 08:25 PM
//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
Posted By: maroon Re: $iif bug maybe? - 19/03/19 09:21 PM
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)
Posted By: Wikked Re: $iif bug maybe? - 20/03/19 04:44 AM
ahh, duh. ty
© mIRC Discussion Forums