| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- {
- "version": "3.16",
- "name": "TC Break Serial: Exit Loop on item==3",
- "registry": {
- "params": [],
- "vars": ["$items([INT])", "$results([INT])"]
- },
- "steps": [
- {
- "id": "Set_Items",
- "target": "$items",
- "value": "[1, 2, 3, 4, 5]",
- "next": "Loop_Items"
- },
- {
- "id": "Loop_Items",
- "mode": "serial",
- "source": "=$items",
- "children": ["Branch_Check"],
- "next": "Stop_End"
- },
- {
- "id": "Branch_Check",
- "cases": [
- ["=_item == 3", "Set_BreakHere"],
- ["ELSE", "Set_Collect"]
- ],
- "next": "RETURN"
- },
- {
- "id": "Set_BreakHere",
- "target": "$results[_index]",
- "value": "=_item",
- "next": "BREAK"
- },
- {
- "id": "Set_Collect",
- "target": "$results[_index]",
- "value": "=_item",
- "next": "RETURN"
- },
- { "id": "Stop_End" }
- ]
- }
|