Another way of using booleans is to test the emptyness of values. This has the advantage of making shorter tests:
one=1first=1 # A true value
two=second= # A false value
[ -n "$one""$first" ] && echo "One'First var is true"true'
[ -z "$one""$first" ] && echo "One'First var is false"false'
[ -n "$two""$second" ] && echo "Two'Second var is true"true'
[ -z "$two""$second" ] && echo "Two'Second var is false"false'
Output:
First var is true
Second var is false
Here is an alternative test syntax with bash: [[ -n $one ]]