So I discovered these bugs lately...
Looks like the () around the if statement makes it execute the command after ) if it's true
//noop $iif((1 isnum) echo -ag fail,1)
fail /!return 1
And.. mIRC has troubles parsing:
//echo -a $replace(ab.,},}) . c