Post
by MacLeod » Tue Jun 25, 2002 4:15 am
Orleron, and other newbie scripters/programmers:
To reiterate what Silk just said in non-code terms, the ! logical not operator simply reverses the result of the values it's attached to, so:
Not false is equal to true
!false == true //statement is true
Not true is equal to false
!true == false
also:
true is not equal to false
true != false // statement is true
false is not equal to true
false != true // statement is true
The logical operators are something extremely important to understand, as you're going to have a <I>lot</i> of decision making code.
Unless somehow writing optimized code becomes a high priority (which I doubt for this), write everything to be highly readable, you're probably going to be changing things a lot. For the same reason, use assloads of comments, describing what you're doing at every important decision.
Duncan MacLeod,
Chessie Mage
"Alright now you sunsofbitches, you know how I feel"
~Jackyl, Open Invitation