Title.
The way I tried declaring a boolean variable is by:
variable=$false
variable=$true
Is the syntax correct? Also, if I wanted to update that variable would I just do the same format? Finally, is the following the proper syntax for using boolean variables as expressions:
if [ $variable ]
if [ !$variable ]
Thanks! Any help is appreciated!