Page 1 of 1

is not = ?

Posted: Thu Jul 28, 2005 7:24 pm
by ViPER
If((is == ==) && (or == ||) && (less == < ) and (more == >))
{
iprintlnbold "How do you say is not =?"
}

Posted: Thu Jul 28, 2005 7:33 pm
by Rookie One.pl
local.answer = "!="
if (!isTrue(local.answer))
self kill

Posted: Thu Jul 28, 2005 10:41 pm
by lizardkid
...wtf?

that's absurdly unreadable coding... :S

not to mention you have too many logical operators and all that... it wont work :S

!= is the not operator if thats what you were after :S

Posted: Fri Jul 29, 2005 6:04 am
by bdbodger
if !(local.a == local.b)

That works too the ! making it the reverse

Posted: Fri Jul 29, 2005 7:02 am
by Rookie One.pl
! means a boolean not. It's all there in the miscellanous script documentation.

I myself miss all the bitwise operators. They only included & and |. :?

Posted: Fri Jul 29, 2005 12:53 pm
by jv_map
And ^ :P but not many good reasons to use any of them unless the objective is to look nerdy :)