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/manual/html_node/test-invocation.html.
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"}}
test in a conditional statement:if test -f "{{path/to/file}}"; then echo "File exists"; else echo "File does not exist"; fi