Skip to content
ffredyk edited this page Jul 23, 2026 · 1 revision

false

Category

Value Constructor

Arity

Nular — no operands.

false

Description

Returns the Boolean value false. Used in conditional expressions, logical operations, and as a literal constant.

How It Works

false compiles to a nular command that pushes the singleton Boolean false onto the VM stack. It is a compile-time constant — no runtime computation.

Usage

Conditional checks

if (false) then {
    systemChat "Never runs";
};

Flag variables

_isRunning = false;
_hasCompleted = false;

Default values

_flag = false;
if (_condition) then {
    _flag = true;
};

Exit conditions

while { _count > 0 } do {
    _count = _count - 1;
    if (_count == 0) exitWith {};
};

Thread Safety

ReadOnly — Boolean values are immutable singletons. Safe from any scheduler.

See Also

SQ# Wiki

Home

Engine Docs

Migration

Commands

Value Constructors

Arithmetic

Comparison

Logic

Array

String

Math

Random

Type & Introspection

HashMap

Code Execution

Concurrency

Scheduler

Thread Safety

Error

Output

Time

Multiplayer

Compiler

Clone this wiki locally