Skip to content

Commit 249d4e8

Browse files
StartAutomatingStartAutomating
authored andcommitted
feat: Template.DoLoop.py / Until.py ( Fixes #929, Fixes #939 )
Adding Until and making documentation more consistent.
1 parent 46aebc0 commit 249d4e8

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Languages/Python/Templates/Python-Template-DoLoop.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ function Template.DoLoop.py {
99
.NOTES
1010
There is not a proper `do` loop in Python, so we have to be a little creative.
1111
12-
This will produce a while loop where the `-InitialCondition` should always be true, and,
12+
This will produce a while loop where the `-InitialCondition` should always be true,
13+
and the `-Condition` will be checked at the end of each loop.
14+
15+
If the `Condition` is false, then the loop will break.
1316
.EXAMPLE
1417
Template.DoLoop.py -Condition "False" -Body "print('This happens once')"
1518
#>

0 commit comments

Comments
 (0)