Flow
Branch, repeat and print in the code your nodes run.
Flow nodes (Add › Flow) decide which nodes run, how often, and in what context. They sit on a flow like any other step: link them after an operator's Execute, an event or a function's Run. If/Else and Switch also work in panels and menus, where they choose what to draw.
| Node | Does |
|---|---|
| If/Else | Runs Then when Condition is true, Else otherwise. In a panel it draws one of the two |
| Switch | Runs the case whose name matches Value, Default when none does. Add Case on the node adds outputs |
| Repeat | Runs Loop a number of Times, with the Index counting from 0 |
| Break / Continue | Inside a loop: Stop Loop leaves it, Next Item skips to the next run |
| Writes a message to the console, and to the node editor while you develop | |
| Temp Override | Runs During with a different context: another area, region, active object or selection |
To compare values or combine conditions, use Compare, Boolean Math and Invert Boolean (Comparing and logic). To loop over a list or a Blender collection, use For Each (List), or Draw For Each in a panel.