Menu
Historical Overview
Definitions
Different names
Operators
Precedence rules
Truth Tables
Examples of Boolean
Expressions

Purpose
Usage examples
Quiz

Usage Examples

IF statement
if(Boolean expression evaluates to true) then
{
...code...
}

Here we control the flow of execution by executing the code contained in if statement if and only if a certain condition apply. In this way we might skip certain parts of code reacting flexibly to changing conditions.

Example 1
Example 2
Example 3


CS561:Boolean Expressions SCLM by Antoni Julian Fertner