while

As the condition for a while loop comes first, the body of the loop will only execute if the condition evaluates to true:

while (<condition>) { 
    <body-statements> 
} 

A while loop may be used to wait for something to happen. For example, it might be used to wait for a path to exist:

while (-not (Test-Path $env:TEMP	est.txt -PathType Leaf)) { 
    Start-Sleep -Seconds 10 
} 
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.222.231.205