bash use var 0 1 or statement true false code example
Example 1: 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
Example 2: boolean constants in bash
true, false