continueWith: Difference between revisions
Lou Montana (talk | contribs) m (Some wiki formatting) |
(Add Promises) |
||
Line 13: | Line 13: | ||
|r1= [[Anything]] | |r1= [[Anything]] | ||
|s2= scriptHandle [[continueWith]] code | |||
|s2since= arma3 2.22 | |||
|p21= scriptHandle: [[Script Handle]] | |||
|p22= code: [[Code]] - Code to execute once the [[Script_Handle#Promise_Handles|Promise]] has completed, see | |||
|r2= [[Nothing]] | |||
|x1= <sqf> | |x1= <sqf> |
Revision as of 17:36, 10 July 2025
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
Alternative Syntax
- Syntax:
- scriptHandle continueWith code
- Parameters:
- scriptHandle: Script Handle
- code: Code - Code to execute once the Promise has completed, see
- Return Value:
- Nothing
Examples
- Example 1:
Additional Information
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