← Back to Explore
for-retry-loop-exhaust
RETRY exhaust with FOR-specific actions NEXT and BREAK
for-loops
Rundown
# FOR Retry Loop Exhaust
## 1. Process items
- FOR item IN 1 TO 3
- PASS ALL CONTINUE
- FAIL ANY CONTINUE
### 1.1 Attempt {{item}}
- PASS CONTINUE
- FAIL RETRY 1 NEXT
```bash
rd echo --result fail --result fail
```
## 2. Done
- PASS COMPLETE
```bash
rd echo "completed"
``` Run
RETRY exhaustion triggers NEXT to skip the iteration
Initializing...
Initializing...
Step—/2