continueWith: Difference between revisions
mNo edit summary |
(continueWith with arguments) |
||
| Line 20: | Line 20: | ||
|r2= [[Nothing]] | |r2= [[Nothing]] | ||
|s3= scriptHandle [[continueWith]] [code, args] | |||
|s3since= arma3 2.22 | |||
|p41= scriptHandle: [[Script Handle]] | |||
|p42= code: [[Code]] - Code to execute once the [[Script_Handle#Promise_Handles|Promise]] has completed. The code will be executed in [[Scheduler#Unscheduled_Environment|Unscheduled Environment]]. | |||
|p43= args: [[Anything]] - Arguments passed into code in _thisArgs variable | |||
|r3= [[Nothing]] | |||
|x1= <sqf> | |x1= <sqf> | ||
Latest revision as of 16:42, 12 March 2026
Description
- Description:
- Skips the current loop iteration, continues with the next one and returns the given value.
- Groups:
- Program Flow
Syntax 1
- Syntax:
- continueWith return
- Parameters:
- return: Anything - value to be returned when iteration is skipped
- Return Value:
- Anything
Syntax 2
- Syntax:
- scriptHandle continueWith code
- Parameters:
- scriptHandle: Script Handle
- code: Code - Code to execute once the Promise has completed. The code will be executed in Unscheduled Environment.
- Return Value:
- Nothing
Syntax 3
- Syntax:
- scriptHandle continueWith [code, args]
- Parameters:
- scriptHandle: Script Handle
- code: 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
- Return Value:
- Nothing
Examples
- Example 1:
Additional Information
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note