At each iteration new i is created and assigned a value. So there is no problem. And it (i) must be declared inside that for block and can't be used outside of the loop But I can say, it a overall factor of scoping. Using final variable (declare and use in that block only) inside the enhanced for loop is ok.
Feb 26, 2020 · Variable and condition declarations must appear before cursor or handler declarations. Variables in Stored Programs. System variables and user-defined variables can be used in stored programs, just as they can be used outside stored-program context. Looping variables. You can wire values into nodes within a block, but the value will always be the same in each iteration. The color of the blob surrounding the nodes in a loop comes from the color of the Block Begin and Block How to create looping and conditional blocks of nodes in VOP networks.