answersLogoWhite

0

A boolean operator is a simple word such as and, or, or not which are used to narrow or expand searches. Boolean operators are also used in programming to determine a path of action often depending on the status of a variable.

User Avatar

Wiki User

10y ago

Still curious? Ask our experts.

Chat with our AI personalities

BeauBeau
You're doing better than you think!
Chat with Beau
LaoLao
The path is yours to walk; I am only here to hold up a mirror.
Chat with Lao
BlakeBlake
As your older brother, I've been where you are—maybe not exactly, but close enough.
Chat with Blake
More answers

Boolean logic is used to combine multiple operations together. You can use "OR" to choose one or more from several sets of conditions, "AND" to specify all conditions must be met, "XOR" if only one of two conditions must be met (but not both), and "NOT" to specify that a condition must not be met.

User Avatar

Wiki User

12y ago
User Avatar

A boolean operator is an operator that returns true or false (zero or non-zero). Non-zero values are typically -1 (0xFF in 8-bit hexadecimal), however the actual value is immaterial.

Examples of boolean operators are the ==, !=, >, >=, < and <= operators. Each of these compares the left operand with the right operand and returns true or false depending on the comparison. E.g., if x is equal to y, then x operator, when applied to strings, must return !strcmp() in order to return the correct boolean value.

User Avatar

Wiki User

12y ago
User Avatar

Add your answer:

Earn +20 pts
Q: What is a boolean operation?
Write your answer...
Submit
Still have questions?
magnify glass
imp