Changed assignment order of FOR

Now the id is assigned AFTER the temporary variable.
This allows for a variable to iterate from 0 to the value of a function
of itself.