Bash - Boolean Variable

Bash Liste Des Attaques Ovh

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

Operator

See Bash - Boolean / Logical Operator





Discover More
Bash Liste Des Attaques Ovh
Bash - (Environment) Variable

A variable is a parameters referenced by a name. parameter A variable has: a value and zero or more attributes (such as integer, ...). Attributes are assigned using the declare builtin command....



Share this page:
Follow us:
Task Runner