$iif is not supposed to be used for performing commands! it's supposed to return a value, like an inline if statement. what you've described is exactly what if ( ) { } is for laugh

but if you absolutely insist, there's a sloppy way of evaluating an $iif() and performing two commands:

Code:
//noop $iif($true,$findfile(.,*,1,scon -r echo LOL $(|) echo THIS IS NOOB))


there are certain things to worry about there, particularly since /scon is used, but that's pretty much the simplest way to create an $iif() that evaluates to perform 2 commands (without using aliases or stuff like that)

there are other similar round about ways of accomplishing this, but they're silly, just use an if statement :P


"The only excuse for making a useless script is that one admires it intensely" - Oscar Wilde