mIRC Home    About    Download    Register    News    Help

Print Thread
New logic operator !== #260190 10/03/17 12:59 PM
Joined: Sep 2015
Posts: 88
klez Offline OP
Babel fish
OP Offline
Babel fish
Joined: Sep 2015
Posts: 88
I have a suggestion to add a new operator !==

We all know that exists an operator == that returns equal affirmation between $1 and $2 and != that returns affirmation that is not equal. Also,is present === regarding case-sensitive affirmation, but !== negative case-sensitive affirmation doesn't!

We can avoid this operator (!==) using:

if ($1 === $2) command | else command..

but when it's concerning a long-range scripts, using If-then-else statements can make headaches. In some cases, is good to have:

if ($1 !== $2) halt

then to add If-then-else statements.

Thanks!

Re: New logic operator !== [Re: klez] #260191 10/03/17 01:45 PM
Joined: Jul 2006
Posts: 3,702
W
Wims Offline
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,702
Keep in mind that '!' is responsible for negating the operator
!= negate the operator '=', this was added for obvious reason, != is used everywhere (read: in others language) to negate a check for equality
!== negate the operator '=='

What you are suggesting/looking for already exists:

!=== negate the, as you mentioned, '===' operator.


Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net
Re: New logic operator !== [Re: Wims] #260192 10/03/17 03:51 PM
Joined: Sep 2015
Posts: 88
klez Offline OP
Babel fish
OP Offline
Babel fish
Joined: Sep 2015
Posts: 88
Thank you. I didn't read mirc help carefully.. I saw that there ==, ===, != are present and i didn't read below that ! negate a check for equality smile

From now on, i'll keep this in mind.

Last edited by klez; 10/03/17 03:51 PM.