continueWith

From Bohemia Interactive Community
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Hover & click on the images for description

Description

Description:
Skips the current loop iteration, continues with the next one and returns the given value.
Groups:
Program Flow

Syntax

Syntax:
continueWith return
Parameters:
return: Anything - value to be returned when iteration is skipped
Return Value:
Anything

Examples

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

Additional Information

See also:
continue break breakWith

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note