Jump to content

Boolean expression

From Simple English Wikipedia, the free encyclopedia
Revision as of 20:39, 6 January 2020 by Brantmeierz (talk | changes) (Parenthetical)

A boolean expression is a type of expression used in computer science. Instead of being solved to a number like a normal expression, they can be solved as either true or false (these are known as Boolean values). Boolean expressions are often used by conditionals in computer programs to decide which code to run.

Examples

  • 5 > 3 is true
  • 3 > 5 is false