Definition
If-Then-Else
The If-Then-Else (ITE) function is a Boolean function that is defined as:
Example
For example, the following equation can be represented as code:
if (a == true) then
if (b == true) then
false
else
true
else
true
Using the function, this pseudo-code can be naively represented as the following:
Of course, this can be simplified to: