! a
- Arma 3 v0.50
- First in Operation Flashpoint v1.00
- Alias of not
Command · also in Math · Markdown · JSON · original wiki page
Description
Returns the negation of a Boolean expression. This means true becomes false and vice versa.
Syntax
! a
Parameters:
a: Boolean
Returns: Boolean
Examples
Example 1
The code
private _isAlive = alive player;
if (!_isAlive) then
{
hint "The player is dead!";
};
is the same as
private _isAlive = alive player;
if (not _isAlive) then
{
hint "The player is dead!";
};