-
Notifications
You must be signed in to change notification settings - Fork 0
if then Statement
Nuno Nogueira edited this page Dec 16, 2022
·
13 revisions
- if-then Statement syntax:
or
if CONDITIONS then COMMANDS fi
-> DOWNLOAD script file if-then.shif CONDITIONS; then COMMANDS fi
- if-then Statement syntax:
-> DOWNLOAD script file if-then-else.sh
if CONDITIONS; then COMMANDS else COMMANDS fi
- hhhhhh
if CONDITIONS_1; then COMMANDS else if CONDITIONS_2; then COMMANDS fi if CONDITIONS_3; then COMMANDS fi if CONDITIONS_4; then COMMANDS fi fi
-> DOWNLOAD script file ifnested.shif CONDITIONS_1; then COMMANDS else if CONDITIONS_2; then COMMANDS elif CONDITIONS_3; then COMMANDS elif CONDITIONS_4; then COMMANDS fi fi