Daniel Falci
Sign in Buy the course

For Loop node in Blueprints: repeat a block for a range of indexes

For Loop fires one execution pulse for each index between First Index and Last Index. From 0 to 4 it runs the Loop Body five times, with Index showing the current number, and then the Completed pin fires once at the end. It runs the whole loop from a single pulse.

See the course Watch a free lesson

From the course

Taken from the hands-on project of the course; the lessons show every step on video.

What are the pins of the For Loop?

How do I test it?

What does Completed do?

It fires only on the last iteration of the loop. Connect a Print String with END to it and the text prints once, after the fifth loop.

How is it different from Do N?

Do N needs a pulse each time to run again, while For Loop runs the loop body the number of times you define, whether the pulse is sent once or several times.

Free PDFs that go with this page

One-page guides made from the lessons, sent by e-mail.

Frequently asked questions

How many times does a For Loop from 0 to 4 run?

Five times: for indexes 0, 1, 2, 3 and 4.

What is the Completed pin?

An output that fires after the last iteration.

Does a For Loop have to start at 0?

No, but 0 is the standard starting index; you can start at another number.

Related guides

See the course