test

Check file types and compare values.
Returns 0 if the condition evaluates to true, 1 if it evaluates to false.

=> More information.

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"}
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).

=> CC-BY

Proxy Information
Original URL
gemini://freeshell.de/tldr/test.gmi
Status Code
Success (20)
Meta
text/gemini;lang=en-GB
Capsule Response Time
104.062871 milliseconds
Gemini-to-HTML Time
0.362848 milliseconds

This content has been proxied by September (3851b).