Difference between revisions of "XML: NOT Operator !"
From FSDeveloper Wiki
m (Rpmc moved page NOT Operator ! to XML: NOT Operator !) |
(→NOT Operator !) |
||
Line 1: | Line 1: | ||
== NOT Operator ! == | == NOT Operator ! == | ||
− | ''Explanation of the '''!''' Operator courtesy Tom Aguilo:'' | + | ''Explanation of the '''[[!]]''' Operator courtesy Tom Aguilo:'' |
The NOT Operator, ! (negation sign) acts like a toggle operator. It works by extracting the last value on the stack and converting it: | The NOT Operator, ! (negation sign) acts like a toggle operator. It works by extracting the last value on the stack and converting it: |
Revision as of 11:05, 26 December 2016
NOT Operator !
Explanation of the ! Operator courtesy Tom Aguilo:
The NOT Operator, ! (negation sign) acts like a toggle operator. It works by extracting the last value on the stack and converting it:
- to 0 when it is >= 1 or <= -1 (equivalent to logical FALSE, or "zero" ) - to 1 when it is > -1 and < 1 (equivalent to logical TRUE, or "not zero" )
From FSDeveloper thread: [[1]]