Answers for "bash if boolean string"

5

bash test boolean

the_world_is_flat=true
# ...do something interesting...
if [ "$the_world_is_flat" = true ] ; then
    echo 'Be careful not to fall off!'
fi
Posted by: Guest on March-06-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language