Core.Actions.Continue
Jump to navigation
Jump to search
Classification
Name | Continue |
Short Description | To stop the current, and resume the next iteration of a loop |
Class | End Node |
Extension | OTX Core library |
Group | End node related actions |
Exceptions | - |
Checker Rules | Core_Chk020 |
Standard Compliant | Yes |
OTL Syntax
continue LoopName;
Description
The iteration of the loop that is specified in the target property can be terminated with the OTX continue activity. The loop will continue directly after the continue activity with the next iteration.
Continue activities can occur only within in arbitrary nesting depth of loops, see WhileLoop, ForLoop, and ForEachLoop.
Properties
Name | Data Type | Class | Default | Cardinality | Description |
Target | - | Reference | - | [1] | Name of the outer loop, which is to be continued |
OTL Examples
Integer counter = 0;
List<Integer> intList1;
for (counter; 0; 9) : ForLoop
{
if ((counter % 2) == 0)
{
continue ForLoop;
}
else
{
}
ListAppendItems(intList1, {counter});
}