Conditional processing symbols
Conditional processing symbols give you control over the execution of commands.
Processing Commands Conditionally
You use conditional processing symbols to issue multiple commands from the same prompt and to act based on the results of a command.
- The ampersand (&) separates multiple commands on one command line.
- The parentheses groups multiple commands.
- The semicolon or comma (; ,) separate command parameters.
- The caret (^) cancels a subsequent command symbol's special meaning so you can use a command symbol as text.
- The double ampersand (&&) causes the command following this symbol to run only if the command preceding the symbol is successful.
- The double pipe (||) causes the command following this symbol to run only if the command preceding the symbol fails.