Conditionals
# If Statements:
if [[ (x == 3 || (y == 2 && z == 4)) ]] # Spaces are necessary as shown.
then
# action
elif
then
# action
else
# action
fi
Last updated
# If Statements:
if [[ (x == 3 || (y == 2 && z == 4)) ]] # Spaces are necessary as shown.
then
# action
elif
then
# action
else
# action
fi
Last updated