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