murex Shell Docs

Parser Reference: Or (||) Logical Operator

Continues next operation only if previous operation fails

Description

When in the normal run mode (see "schedulers" link below) this will only run the command on the right hand side if the command on the left hand side does not error. Neither STDOUT nor STDERR are piped.

This has no effect in try nor trypipe run modes because they automatically apply stricter error handling. See detail below.

Examples

Second command does not run because the first command doesn't error:

» out: one || out: two
one

Second command does run because the first command produces an error:

» err: one || out: two
one
two

Detail

This has no effect in try nor trypipe run modes because they automatically apply stricter error handling. You can achive a similiar behavior in try with the following code:

try {
    err: one -> !if { out: two }
}

There is no workaround for trypipe.

See Also

This site's content is rebuilt automatically from murex's source code after each merge to the master branch. Downloadable murex binaries are also built with the website.

Last built on Thu May 26 22:49:43 UTC 2022 against commit 59e27bb59e27bb1013043fc4a940cf9a2767c63f31dad2c.

Current version is 2.8.2100 which has been verified against 15889 tests cases.