XML: NOT Operator !: Difference between revisions
From FSDeveloper Wiki
Jump to navigationJump to search
| (4 intermediate revisions by the same user not shown) | |||
| 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 | The NOT Operator, '''!''' (negation sign) acts like a toggle operator. It works by extracting the top value on the stack and converting it: | ||
- to 0 when it is >= 1 or <= -1 (equivalent to logical FALSE, or "zero" ) | - 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" ) | - to 1 when it is > -1 and < 1 (equivalent to logical TRUE, or "not zero" ) | ||
From FSDeveloper thread: [[http://fsdeveloper.com/forum/threads/landing-variable.439017/#post-761124]] | |||
[[Category:Aircraft Design]] | [[Category:Aircraft Design]] | ||
[[Category:Panel and Gauge Design]] | [[Category:Panel and Gauge Design]] | ||
Latest revision as of 13:22, 27 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 top 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]]