Arma 3 Scripting

continueWith

  • Arma 3 v2.02

Command · Markdown · JSON · original wiki page

Description

Skips the current loop iteration, continues with the next one and returns the given value.

Syntax

Syntax 1

continueWith return

Parameters:

Returns: Anything

Syntax 2

since arma3 2.22

scriptHandle continueWith code

Parameters:

Returns: Nothing

Syntax 3

since arma3 2.22

scriptHandle continueWith [code, args]

Parameters:

Returns: Nothing

Examples

Example 1

// results in [2, "TEST", 4]
private _result = [1, 2, 3] apply {
    if (_x == 2) then {
        continueWith "TEST";
    } else {
        _x + 1;
    };
};

See also

continue · break · breakWith