if
A command of the separate bcma command line; see Commands for other chip families.
Conditionally execute commands.
if <condition> [<command> ... [else <command> ...]]
Built-in help
Execute a list of command lines only if <condition> is a
non-zero integer or a successful sub-command-line.
Command lines of more than one word must be quoted.
Simple left-to-right boolean operations are supported.
The return value from this command is the result of the last
executed command.
If one of the commands in the list fails, the execution will stop,
unless the environment variable '_iferror' is set to 0.
Built-in examples
1 "echo hello" "echo world"
$?quickturn && !"bist arl" "echo BIST failed"