Haha you can't have an error in a group name alias. However, if you used $group($1) in an $iif()...
If you do not have a group by the name used in the alias I mentioned, you *will* get an error:
-
* /enable: no such group(s)
-
If and else takes up 2 lines, so wouldn't $iif be faster if it were 1 line? (Especially if you use an if, elseif, and else, then that being 3 lines should be about 3x as long as 1 if statement?) My presumption.
The number of lines is less important than how things are processed. Also, $iif is for if/else... not if/elseif/else... so you can't compare it to that.
Using the code above to test both $iif and if/else while using a simple code:
For $iif:
var %test = $iif(1>2,1,0)
For if/else:
if (1>2) { var %test = 1 }
else { var %test = 0 }
Here are my results for 3 passes each:
$iif:
40 seconds
40 seconds
43 seconds
if/else:
32 seconds
32 seconds
33 seconds
So, from the results, using $iif appears to take 22-24% longer to complete. Feel free to do your own tests.