{"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","replaced_by":[],"games":[{"game":"ofp","name":"Operation Flashpoint","version":"1.00"},{"game":"ofpe","name":"Operation Flashpoint: Elite","version":"1.00"},{"game":"arma1","name":"Armed Assault","version":"1.00"},{"game":"arma2","name":"Arma 2","version":"1.00"},{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"ofp","name":"Operation Flashpoint","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Returns the negation of a Boolean expression. This means `true` becomes `false` and vice versa.","syntaxes":[{"syntax":"! a","since":null,"effect":null,"exec":null,"params":[{"name":"a","type":"Boolean","optional":false,"default":null,"description":null,"types":["Boolean"],"since":null,"text":"a: Boolean"}],"returns":{"type":"Boolean","types":["Boolean"],"description":null,"text":"Boolean"},"form":"unary","operator":"!","left":null,"right":{"text":"a","types":["Boolean"]}}],"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};"]}],"multiplayer":null,"problems":null,"aliases":["not"],"see_also":["not","Operators"],"notes":[],"categories":["ArmA: Armed Assault: Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 2: Scripting Commands","Arma 3: Scripting Commands","Command Group: Math","Command Group: Variables","Introduced with Operation Flashpoint version 1.00","Operation Flashpoint: Elite: Scripting Commands","Operation Flashpoint: New Scripting Commands","Operation Flashpoint: Scripting Commands","Scripting Commands","Take On Helicopters: Scripting Commands"]}