Use with if.

if true; then
  echo 'True!'
fi
# True!

Use with if and else.

if true; then
  echo 'True!'
else
  echo 'False!'
fi
# True!