if then comman in bash code example
Example 1: if and if bash
if [ "${STATUS}" != 200 ] && [ "${STRING}" != "${VALUE}" ]; then
Example 2: bash if else if
if [[ TEST-COMMAND ]]
then
STATEMENTS1
else
STATEMENTS2
fi
if [ "${STATUS}" != 200 ] && [ "${STRING}" != "${VALUE}" ]; then
if [[ TEST-COMMAND ]]
then
STATEMENTS1
else
STATEMENTS2
fi