continue: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(page creation)
 
m (formatting)
Line 15: Line 15:
|x1= <code>[[for]] "_i" [[from]] 0 [[to]] 3 [[do]]  
|x1= <code>[[for]] "_i" [[from]] 0 [[to]] 3 [[do]]  
{
{
     [[if]] (_i [[a == b|==]] 2) [[then]] {continue};  
     [[if]] (_i [[a == b|==]] 2) [[then]] {[[continue]]};  
     [[systemChat]] [[str]] _i;
     [[systemChat]] [[str]] _i;
};</code>|EXAMPLE1=  
};</code>|EXAMPLE1=  

Revision as of 18:34, 5 November 2020

-wrong parameter ("arma3dev") defined!-[[:Category:Introduced with arma3dev version 2.02|2.02]]
Hover & click on the images for description

Description

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

Syntax

Syntax:
continue
Return Value:
Nothing

Examples

Example 1:
for "_i" from 0 to 3 do { if (_i == 2) then {continue}; systemChat str _i; };

Additional Information

See also:
continueWith 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

[[Category:Introduced with arma3dev version 2.02]][[ Category: arma3dev: New Scripting Commands | CONTINUE]][[ Category: arma3dev: Scripting Commands | CONTINUE]]