Contents of this page:
Different forms:
For and For Each statements are converted to an equivalent Python for block. Where the iteration is over an iterable object, the translation just uses the iterable. Where the VB statement is an iteration between two numbers, the vb2Py function vbForRange is used to match the behaviour.
VB:
For Each Obj In Container DoSomethingWith i If i.Condition Then Exit For Next i
There are no options specific to the For statement.