{"name":"! a","operator":"!","title":"! a","type":"command","url":"https://community.bistudio.com/wiki/!_a","revid":369088,"updated":"2024-09-02T20:37:47Z","groups":["Variables","Math"],"status":"ok","games":{"ofp":"1.00","ofpe":"1.00","arma1":"1.00","arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"ofp 1.00","arma3_since":"0.50","description":"Returns the negation of a Boolean expression. This means `true` becomes `false` and vice versa.","syntaxes":[{"syntax":"! a","params":[{"name":"a","type":"Boolean","type_expr":"Boolean"}],"returns":{"type":"Boolean","type_expr":"Boolean"},"form":"unary","right":{"text":"a"}}],"examples":[{"text":"The code\n\n```sqf\nprivate _isAlive = alive player;\nif (!_isAlive) then\n{\n    hint \"The player is dead!\";\n};\n```\n\nis the same as\n\n```sqf\nprivate _isAlive = alive player;\nif (not _isAlive) then\n{\n    hint \"The player is dead!\";\n};\n```","code":["private _isAlive = alive player;\nif (!_isAlive) then\n{\n\thint \"The player is dead!\";\n};","private _isAlive = alive player;\nif (not _isAlive) then\n{\n\thint \"The player is dead!\";\n};"]}],"aliases":["not"],"see_also":["not","Operators"]}