The For-Loop node doesn't seem to work properly

I have added a video to demonstrate what I mean in a smaller example:

In this script, the data in the peek node should have incremented after every second, as the index in the for-loop goes up after waiting every one second, but in this case, the index goes straight to 10 for some reason. There is also no documentation on the site about this node, so I cannot tell if this is a bug or I am not using the node properly.

Any clarification on this would be very much appreciated!
-Andin

2 Likes

UPDATE: I found the issue in the discord server

The for-loop does not wait for the nodes in the body to finish executing before the next step, so even putting the wait node in there will not work.

Again, it would be nice to have documentation for all nodes on the website, as discord isn’t really a replacement for that

2 Likes