ComfyUI Node
PSN Iteration Toggle
Alternates between `mode_a` (even iterations) and `mode_b` (odd iterations) based on `current_iteration` parity. Reports whether this is the last iteration.
PSN Iteration Toggle
- mode_a
- mode_b
- selected_value
- is_last_iteration
◄current_iteration0►
◄total_iterations1►
CategoryParametric/Flow
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| current_iteration | INT | 00–1000000 | Current iteration. From 0 to 1e+06. Default 0. |
| total_iterations | INT | 11–1000000 | Total iterations. From 1 to 1e+06. Default 1. |
| mode_a | ANY | Mode a. | |
| mode_b | ANY | Mode b. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| selected_value | ANY | — |
| is_last_iteration | BOOLEAN | — |