Arma 3 Scripting

Command in Variables, Math

! a

Also available as Markdown and JSON, or read the original wiki page.

Description

Returns the negation of a Boolean expression. This means true becomes false and vice versa.

Syntax

! a

Parameters:

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

See also

not · Operators