The ! (for not) does not work in $calc.. although I'd swear it worked in 6.03.
Also, some of my /if statements are returning false when they should return true.
Example: if ($nick != $eval(% $+ person $+ %turn.fight, 2))
where %turn.fight is either 1 or 2, and %person1 and %person2 store two names.
sometimes it returns the correct result, sometimes not... I surely hope I am the one that's doing something wrong.
"The ! (for not) does not work in $calc" I don't see a $calc anywhere in that script...
lol yha $calc.... where is it?!??
in no sense - nonsense...
I may be wrong but I suspect...
The ! (for not) does not work in $calc.. although I'd swear it worked in 6.03.
...is a seperate issue from...
Also, some of my /if statements are returning false when they should return true.
Example: if ($nick != $eval(% $+ person $+ %turn.fight, 2))
where %turn.fight is either 1 or 2, and %person1 and %person2 store two names.
sometimes it returns the correct result, sometimes not... I surely hope I am the one that's doing something wrong.
Perhaps, but I don't know. I thought perhaps me meant to say $eval not $calc simply because using ! inside $calc doesn't make any sense.
"! (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..
When dealing with numbers, mIRC probably keeps it as numbers so math operators don't break.
Why !$(N) where N <> 0, returns $null instead of 0, I don't now.