murex Shell Docs

Parser Reference: And (&&) Logical Operator

Continues next operation if previous operation passes

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.

Examples

Second command runs because the first command doesn’t error:

» out: one && out: two
one
two

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

» err: one && out: two
one

Detail

This is equivelent to a try block:

try {
    err: one
    out: two
}

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 Mon Feb 13 09:18:06 UTC 2023 against commit f339958f33995895c1d997efcdbb8408d2c8d45f8b5f934.

Current version is which has been verified against 13950 tests cases.