Loops in Geometry Nodes [Proposal]

Feels like this proposal falls a little short, only considering static loops (ie the number of iterations is known beforehand) seems limiting, I always imagined implementing loops with “special” nodegroup where input sockets and output sockets would be identical except for an “Exit” output socket being 0 or 1 would either rerun the loop or exit the loop.

It’s simple elegant and answers all your questions you posed for a serial loop, a simple do-nothing loop would look like this

Socket Default Value
Iteraiton 1

While calculating the Nth Fibonacci would be something like

Socket Default Value
Iteraiton 1
FibonacciN 10
F0 0
F1 1
13 Likes