Boolean expressionIn computer science, a Boolean expression is an expression used in programming languages that produces either true or false when evaluated.[1] Boolean expressions are often used by conditionals in computer programs to decide which code to run. Most Boolean expressions will contain at least one variable ( Boolean operatorsBoolean operators may be represented by words such as OR, AND and NOT. Some programming languages use symbols such as "||" (double pipe character) for OR, "&&" (double ampersand) for AND, and "!" for NOT. Other programming languages may use other symbols. Other Boolean operators may be available, too, for example XOR (exclusive OR). Boolean expressions can also be represented as Logic gates in electronic circuit diagrams. See Truth tables for a summary of the effects of common Boolean operators. Examples
An exercise for the reader
References
Other websites
|
Portal di Ensiklopedia Dunia