I tried to declare a Boolean variable in a shell script using the following syntax:
Is this correct? Also, if I wanted to update that variable would I use the same syntax? Finally, is the following syntax for using Boolean variables as expressions correct?
if [ $variable ] if [ !$variable ]