Show Table of Contents
2.9. shell:if, if
Abstract
executes an if/then/else block
Synopsis
shell:if [
--help
] {
condition
} {
ifTrue
} [
ifFalse
]
Arguments
Table 2.9, “shell:if Arguments” describes the command's arguments.
Table 2.9. shell:if Arguments
| Argument | Interpretation |
|---|---|
--help | Displays the online help for this command |
| condition | Boolean condition. |
| ifTrue | Function to evaluate, if condition is true. |
| ifFalse | Function to evaluate, if condition is false. |

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.