Originally Posted By: Wims
$iif is an inline condition.
Code:
var %a
if ($1 == 1) %a = cow
else %a = dog
echo -a %a is an animal

;is equivalent to

echo -a $iif($1 == 1,cow,dog) is an animal
$iif(condition,true,false) - if the condition is true, it returns the 'true' parameter, otherwise returns the 'false' one


I had already looked for that information, but I do not understand how it works in the Nillen code.

There are two conditions equal "$2" and both variables stored a channel.

Thanks Wims, I'll wait to see if I Nillen explained in more detail, the operation of each of these lines.