murex Shell Docs

Command Reference: or

Returns true or false depending on whether one code-block out of multiple ones supplied is successful or unsuccessful.


Returns a boolean results (true or false) depending on whether any of the code-blocks included as parameters are successful or not.


or: { code-block } { code-block } -> <stdout>

!or: { code-block } { code-block } -> <stdout>

or supports as many or as few code-blocks as you wish.


if { or { = 1+1==2 } { = 2+2==5 } { = 3+3==6 } } then {
    out: At least one of those equations are correct


or does not set the exit number on failure so it is safe to use inside a try or trypipe block.

If or is prefixed by a bang (!or) then it returns true when one or more code-blocks are unsuccessful (ie the opposite of or).

Code-Block Testing


See Also

This site is rebuilt weekly, the content is automatically generated from murex's source code. Last built on Mon Oct 19 06:12:17 UTC 2020 against commit 81299cb81299cbf18c05a5d38bdde93a5f5a3c5ff005b27. Downloadable murex binaries are also built weekly. Current version is 1.0.0000 BETA which has been verified against tests.