To determine if a statement is True or False. computers use Boolean opearators. There are four main Boolean operators: AND. NOT. OR. and XOR. These logical operators are used together in complex ways to determine if a particular condition is True or False. Examples:

x AND Y returns the value True ifthe condition is true for both x and y or else it returns False
NOT x returns the value True if x is false (or null) and False if x is true
x OR y returns the value True if either or both x and yare true.
It only returns false ifboth x and yare False for the given condition x XOR y returns the value True only if either x or yare true. If both x and yare true then it will return the value False.

Name:  Boolean.jpg
Views: 97
Size:  21.6 KB

Using Boolean operators is not restricted to computer programming. End-users also use Boolean expressions when they need to filter results in a search engine window. For example, the Boolean expression "computers AND hardware NOT memory" when used in a search engine will return all pages containing the words "computers" and "hardware" while excluding all pages containiIig the word "memory".