Boolean operator

From Linux Bash Shell Scripting Tutorial Wiki
Jump to navigation Jump to search

The following boolean logical operators are allowed:

  1. AND operator is &&
  2. OR operator is ||
  3. NOT operator is !

String Comparison Boolean Operator

The following boolean operators are allowed:

  1. == : String comparison equal
  2. != : Boolean not equal.
  3. ! : Boolean not i.e. exclamation point for negation.