Contents of this page:
Different forms:
All variations of VB's Do ... Loop construct are converted to an equivalent Python while block. Preconditions are converted to the equivalent condition in the while statement itself, whereas post-conditions are implemented using an if ...: break . Exit's from the loop are also implemented using break . Until conditions (pre or post) are implemented by negating the condition itself but do not affect the structure.
VB | Python |
---|---|
|
|
VB | Python |
---|---|
|
|
VB | Python |
---|---|
|
|
VB | Python |
---|---|
|
|
VB | Python |
---|---|
|
|
There are no options for the Do ... Loop construct.