← Back to Explore
for-substep-defer-continue
DEFER substep followed by CONTINUE substep within FOR iteration
for-loops
Rundown
# FOR Substep DEFER then CONTINUE
Reversed order: DEFER first, CONTINUE second.
The DEFER substep feeds aggregation; the trailing CONTINUE is invisible.
## 1. Process items
- FOR item IN 1 TO 2
- PASS ALL CONTINUE
- FAIL ANY STOP
### 1.1 Record {{item}}
- PASS DEFER
- FAIL DEFER
```bash
rd echo "record={{item}}"
```
### 1.2 Verify {{item}}
- PASS CONTINUE
- FAIL CONTINUE
```bash
rd echo "verify={{item}}"
```
## 2. Done
- PASS COMPLETE
```bash
rd echo "done"
``` Run
All iterations pass, DEFER feeds aggregation, trailing CONTINUE is invisible
Initializing...
Initializing...
Step—/2