not: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|s([0-9])\= '''([^' ]+)'''([^ ]+) " to "|s$1= $2$3 ")
m (Add alias)
Line 26: Line 26:
|gr2= Variables
|gr2= Variables


|descr= '''not''' a is exactly the same as [[!]]a
|descr= [[not]] a is exactly the same as [[! a]].
 
|alias= [[! a]]


|s1= [[not]] a
|s1= [[not]] a
Line 34: Line 36:
|r1=[[Boolean]]
|r1=[[Boolean]]


|x1= <br><code>not [[false]]</code>
|x1= <code>[[not]] [[false]]; {{cc|returns [[true]]}}</code>
 
Result is [[true]].


|seealso= [[Operators]]
|seealso= [[Operators]]
}}
}}

Revision as of 11:15, 1 August 2021

Hover & click on the images for description

Description

Description:
not a is exactly the same as ! a.
Alias:
! a
Groups:
MathVariables

Syntax

Syntax:
not a
Parameters:
a: Boolean
Return Value:
Boolean

Examples

Example 1:
not false; // returns true

Additional Information

See also:
Operators

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note