Oh right, OK thanks I didn't realize that it would run every tick unless I told it to run every tick, but it makes sense otherwise you'd only be able to push left once to go left and never go left again.
So anything told to run at the start of the layout will just run once?
And what happens if you need a for loop that terminates when a condition is met mid game?
You'll just need to create proper triggers that state when the loop should be enabled and when disabled. You could for example do it like this:
global variable loopEnabled = 1
loopEnabled = 1
for 0 .. n
do stuff
Now, if you change 1 to anything else the loop will not run anymore.