Conditional IF in BASH

Example of the use of the IF conditional in BASH:

if [ "${MY_ENV_VAR}" = "true" ]; then
  echo "MY_ENV_VAR is true"
fi