mIRC Homepage
Posted By: The_Mega_ZZTer mIRC 6.1 weirdness - 07/09/03 12:51 PM
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.
Posted By: codemastr Re: mIRC 6.1 weirdness - 07/09/03 03:16 PM
"The ! (for not) does not work in $calc" I don't see a $calc anywhere in that script...
Posted By: JoNaS_MaN Re: mIRC 6.1 weirdness - 07/09/03 06:05 PM
lol yha $calc.... where is it?!??
Posted By: J0ke Re: mIRC 6.1 weirdness - 07/09/03 06:33 PM
in no sense - nonsense...
Posted By: DekuHaze Re: mIRC 6.1 weirdness - 08/09/03 12:09 AM
I may be wrong but I suspect...

Quote:
The ! (for not) does not work in $calc.. although I'd swear it worked in 6.03.


...is a seperate issue from...

Quote:
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.
Posted By: codemastr Re: mIRC 6.1 weirdness - 09/09/03 07:59 PM
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.
Posted By: cold Re: mIRC 6.1 weirdness - 12/09/03 06:41 AM
"! (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..
Posted By: Raccoon Re: mIRC 6.1 weirdness - 12/09/03 08:33 AM
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.
© mIRC Discussion Forums