loop for core> loop {flags} (block)
block: block to loop| input | output |
|---|---|
| nothing | nothing |
Loop while a condition is true
>mutx=0;loop { if$x>10 { break };$x=$x+1 };$x
11
Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/loop.html