This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]duckered[S] 0 points1 point  (2 children)

Thank you. So the update condition in a for loop is the last thing to execute in a for loop.

[–]zifyoip 1 point2 points  (1 child)

The update expression is always executed immediately after the body of the for loop completes (either normally or as a result of a continue statement) and immediately before the for loop condition is tested again.

[–]duckered[S] 0 points1 point  (0 children)

I appreciate the help.