murex Shell Docs

Command Reference: while

Loop until condition false

Description

while loops until loops until condition is false.

Normally the conditional and executed code block are 2 separate parameters however you can call while with just 1 parameter where the code block acts as both the conditional and the code to be ran.

Usage

Until true

while { condition } { code-block } -> <stdout>

while { code-block } -> <stdout>

Until false

!while { condition } { code-block } -> <stdout>

`` !while { code-block } -> =5 } { let i=i+1; out $i } 1 2 3 4 5

» let i=0; while { let i=i+1; = i>=5; out }
true
true
true
true
false

Synonyms

See Also

This site is rebuilt weekly, the content is automatically generated from murex's source code. Last built on Mon Aug 3 06:12:53 UTC 2020 against commit 2557f7c2557f7cc7535c452c21d89164bd38ed8996f02fd. Downloadable murex binaries are also built weekly. Current version is 0.52.2000 BETA which has been verified against tests.