Description
Skips the current loop iteration, continues with the next one and returns the given value.
Syntax
Syntax 1
continueWith return
Parameters:
return: Anything - value to be returned when iteration is skipped
Returns: Anything
Syntax 2
since arma3 2.22
scriptHandle continueWith code
Parameters:
scriptHandle: Script Handlecode: Code - Code to execute once the Promise has completed. The code will be executed in Unscheduled Environment.
Returns: Nothing
Syntax 3
since arma3 2.22
scriptHandle continueWith [code, args]
Parameters:
scriptHandle: Script Handlecode: Code - Code to execute once the Promise has completed. The code will be executed in Unscheduled Environment.args: Anything - Arguments passed into code in _thisArgs variable
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;
};
};