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!";
};