About
The Boolean data type in Bash.
Bash has a true built-in.
Management
Condition
condition=true
if [ "$condition" = true ] ; then
echo 'Go'
fi
# or double bracket format
if [[ "$bool" = true ]]; then
echo 'Go'
fi
The Boolean data type in Bash.
Bash has a true built-in.
condition=true
if [ "$condition" = true ] ; then
echo 'Go'
fi
# or double bracket format
if [[ "$bool" = true ]]; then
echo 'Go'
fi