Skip to content

Latest commit

 

History

History

booleans-use-true-and-false

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

For booleans use true and false

Booleans using true and false can use the shell built-in commands like this:

x=true
if [ "$x" = true ]; then
    ...
fi

Notice that this is not using numbers (such as 0 or 1) and not using commands (such as /bin/true or /bin/false)