Nested algorithm for "ForStatement"

For Statement