by ikam » Monday, 09.July 2012, 08:54
Yes loop operator is a cycle.
"from 0 to n-1" is the loop end value, don't take care of 'n', it's not a variable, it's only represent the value you enter here. So your loop will repeat 'n-1' time. (In programming language most of loop start from 0, so end loop is endvalue-1, ex to repeat 10 times an action, loop is 0 to 9).
'i' is a variable containing the loop index, so it's start with 0 and finish with your value-1. So you can use 'i' in your script, his value will range from 0 to your endvalue-1.
For atlas, yes it use variable name declared in loop as counter.
Here another example:
In conclusion, just indicate in loop op the count you want to repeat an action (don't compute n-1)
You do not have the required permissions to view the files attached to this post.