Logical Operators

Logical operators are used to combine logical expressions. The most common logical operators are:

  • And: &&
  • Or: ||
  • Not: !

The following code shows an example of how to use logical operators:


				
ADVERTISEMENT
ADVERTISEMENT