mIRC Home    About    Download    Register    News    Help

Print Thread
#260190 10/03/17 12:59 PM
Joined: Sep 2015
Posts: 101
klez Offline OP
Vogon poet
OP Offline
Vogon poet
Joined: Sep 2015
Posts: 101
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!

Joined: Jul 2006
Posts: 4,145
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,145
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.


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Sep 2015
Posts: 101
klez Offline OP
Vogon poet
OP Offline
Vogon poet
Joined: Sep 2015
Posts: 101
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.

Link Copied to Clipboard