Boolean expression

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

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[change | change source]

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