Logical operators are symbols that aid in evaluating boolean expressions. These are found in just about every programming language that supports boolean. Common examples are && (AND), || (OR), ! (NOT), == ([value] equal to), === ([value and type] equal to), >= (Greater than or equal to), <= (Less than or equal to), > (Greater than), and < (less than)
Operations:
- AND: both expressions are TRUE
- OR: either expression is TRUE
- NOT: TRUE if the expression is FALSE
- NAND: the inverse of an AND operation
- NOR: the inverse of an OR operation
- XOR: either expression is TRUE but not both
- XNOR: both must be TRUE or both must be FALSE
In scientific software r for statistical computing and graphics, consult ?base::Logic
for logical operators.