value breakOut name

Operand types

value: Anything
name: String

Type of returned value

Description

Breaks the code execution out of scope {} named name. Scope name can be assigned using scopeName command.

Since Arma 3 v1.47, breakOut can be used to return a value.

value: Anything
name: String - name of the scope set with scopeName command.

Used In

Arma3

Example

call {
scopeName "main";
call {
123 breakOut "main"
};
345
}; // call returns 123
Search OFPEC COMREF