Check file types and compare values. Returns 0 if the condition evaluates to true, 1 if it evaluates to false. More information: https://www.gnu.org/software/coreutils/test.
test "$MY_VAR" = "/bin/zsh"
test -z "$GIT_BRANCH"
test -f "path/to/file_or_directory"
test ! -d "path/to/directory"
test condition && echo "true" || echo "false"