continueWith: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Added example)
m (Text replacement - "\|game([0-9]) ?= (.+) \|version([0-9]) ?= (.+) " to "|game$1= $2 |version$3= $4 ")
Line 2: Line 2:


|game1= arma3
|game1= arma3
|version1= 2.02
|version1= 2.02



Revision as of 15:58, 3 May 2021

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:
The result of this code will be [2, "TEST", 4]. [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