"! (for not)".. I think he means using "!$calc(...)" as an /if condition. But it works fine here.
Also, something seems weird to me, although not a bug:
"if (!$false) echo -a * $ifmatch" echoes "* $true";
"if (!$null) echo -a * $ifmatch" echoes "* $true".
"if (!$(0)) echo -a * $ifmatch" echoes "* 1;
"if (!$calc(1-1)) echo -a * $ifmatch" echoes "* 1";
"var %x = 0 | if (!%x) echo -a * $ifmatch" echoes "* 1".
Shouldn't these red lines return "* $true" as well? Maybe the ! prefix is just inverting values ($false and $null to $true, 0 to 1), but then..
"echo -a $iif(!$true,$ifmatch,$ifmatch)" echoes "*".
Shouldn't this return "* $false" ($true to $false)?
"echo -a $iif(!$(1),$ifmatch,$ifmatch)" echoes "*".
Shouldn't this return "* 0" (1 to 0)?
Does my point make sense or am I losing my time?
It's such an useless test, anyway..
Last edited by cold; 12/09/03 07:15 AM.