answersLogoWhite
Computers
Computer Programming
Synonyms and Antonyms
Algebra

What are Boolean operators and how are they used?

606162

Top Answer
User Avatar
Wiki User
2005-12-30 06:33:59
2005-12-30 06:33:59

Boolean operators are used in programming. It would be hard for me to explain exactly how they are used in programming without giving you a programming course, but I can tell you basically what they do. The main boolean operators are AND, OR, NOT, and XOR (exclusive or). So: * (true AND true) makes true * (true AND false) makes false * (false AND true) makes false * (false AND false) makes false * (true OR true) makes true * (true OR false) makes true * (false OR true) makes true * (false OR false) makes false * (NOT true) make false * (NOT false) makes true XOR is the same as OR except that it only allows one or the other to be true; not both: * '''(true XOR true) makes false''' * (true OR false) makes true * (false OR true) makes true * (false OR false) makes false Boolean operators can be mixed together like this: NOT (true XOR (false AND true)) makes false In programming, you often use symbols to represent these instead of writing out the words. OR is , not is !, and AND is &&. -DJ Craig They are often used by search engines. If you put in "Bob" AND "Smith" you would get results that have both Bob and Smith in them (say 150 results). If you put in "Bob" OR "Smith" you would get any result with Bob or Smith (say 3000 results). If you put in "Bob" NOT "Smith" you would get Bob Jones, but not Bob Smith. Not all search engines use these. And some use other terms for them.

12

Related Questions

User Avatar

These are the 5 boolean operators are ( ) NEAR NOT AND OR

User Avatar

Boolean operators: = != > >= They are used in If/Then/Else statements mainly, to compare two things to each other and return whether it worked or not.

User Avatar

Boolean operators are words that are used to define the relationship between other words. For example, both AND and OR are considered Boolean operators. More in depth information can be found in advanced grammatical texts.

User Avatar

AND, OR, and NOT are the basic operators in Boolean Algebra.

User Avatar

Boolean operators include : AND OR NAND (Not AND) NOR (Not OR)

User Avatar

All Boolean operators are, are true or false statements.

User Avatar

The standard Boolean operators are AND, OR and NOT. From these, Boolean algebra derives 3 more "derived" operators--material implication, exclusive or, and equivalence. They are used to evaluate a Boolean expression. These expressions all evaluate to either TRUE or FALSE.

User Avatar

They can have operators. It depends on the formula or function in question. There are lots of kinds of operators that can be used like the mathematical ones, operators for comparisons and boolean operators.

User Avatar

From George Boole, founder of boolean algebra.

User Avatar

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

Logical operators don't Compare values they combine Boolean values and produce a Boolean result. Examples of logical operators are && (and), , (or), ! (not). If you have two Boolean values and you combined them with the && operator the result will be (TRUE) only if both values were (TRUE). Relational operators compare two values and produce a Boolean result. Most of the time we use logical operators to combine the results of two or more comparison expressions that use relational operators.

User Avatar

A boolean is an expression obtained in relational operators.

User Avatar

There are several boolean operators in PHP. I'm not able to provide you with it's full list, but here are some of the most used ones: && - AND - OR ! - NOT

User Avatar

Boolean operators are named after a mathematician by the name of George Boole. He came up with the idea that all mathematical problems were either true or false.

User Avatar

Logical operator precedence (from highest precedent to lowest): # NOT ! # boolean AND & # boolean XOR ^ # boolean OR | # AND && # OR

User Avatar

In programming. True/false can come in handy when asking questions like; "What is the state of this?"

User Avatar

Boolean operators Find a list here: http://www.csa.com/help/Search_Tools/boolean_operators.html

User Avatar

The three basic Boolean operators are OR, AND and NOT.

User Avatar

x and y represent the true / false

User Avatar

Depends on the computer language, the Boolean operators may have different looks, but all the basic ones should be in place:Equality (Equals(), ==, IsTrue, IsFalse), to compare 2 boolean valuesNot (~, !, .NOT. ), negation or compliment. That is, !True TrueAnd (&, &&, .AND.), the intersection.Or (|, , .OR.), the union

User Avatar

Boolean Search is something like using differnt operators like and,or, not etc

User Avatar

PHP Operators are syntactical constructs that assign, compare, or modify a value. There are bitwise operators, arithmetic operators, boolean operators, assignment operators, and concatenation operators. There are also a wide variety of functions and class methods which simulate or utilize these operations.


Copyright © 2020 Multiply Media, LLC. All Rights Reserved. The material on this site can not be reproduced, distributed, transmitted, cached or otherwise used, except with prior written permission of Multiply.