is not = ?

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
ViPER
General
Posts: 1058
Joined: Fri Jan 14, 2005 5:48 pm
Location: California
Contact:

is not = ?

Post by ViPER »

If((is == ==) && (or == ||) && (less == < ) and (more == >))
{
iprintlnbold "How do you say is not =?"
}
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

local.answer = "!="
if (!isTrue(local.answer))
self kill
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post 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
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

if !(local.a == local.b)

That works too the ! making it the reverse
Image
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post 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 |. :?
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

And ^ :P but not many good reasons to use any of them unless the objective is to look nerdy :)
Image
Post Reply