July 2018
Beginner
552 pages
13h 18m
English
The do loop has two possible conditions, until and while, which are validated after the first execution, at the end of the do loop. Since the condition is only checked after the script block, the script block is executed at least once regardless of how the condition is evaluated.
The do loop syntax, with the two possible conditions, looks as follows:
# do-loop with while condition - simple syntax# do # {# <statement list># }# while (<condition>)# do-loop with until condition - simple syntax# do # {# <statement list># }# until (<condition>)
The first loop will be executed as long as the conditional expression after the while keyword returns $true, while the second loop is only executed as long as the conditional expression after the ...
Read now
Unlock full access