Logic Funcers

true

Returns the value representing logical truth.

TypeValue
InputAnyany value (is ignored)
OutputBoolthe unique value representing logical truth

Examples

ProgramTypeValueError
trueBooltrue

false

Returns the value representing logical falsehood.

TypeValue
InputAnyany value (is ignored)
OutputBoolthe unique value representing logical falsehood

Examples

ProgramTypeValueError
falseBoolfalse

and

Computes logical conjunction.

TypeValue
InputBoola boolean value
q (param #1)Boolanother boolean value
OutputBooltrue if both the input and q are true, false otherwise

Examples

ProgramTypeValueError
false and(false)Boolfalse
false and(true)Boolfalse
true and(false)Boolfalse
true and(true)Booltrue

or

Computes logical disjunction.

TypeValue
InputBoola boolean value
q (param #1)Boolanother boolean value
OutputBooltrue if at least one of the input and q is true, false otherwise

Examples

ProgramTypeValueError
false or(false)Boolfalse
false or(true)Booltrue
true or(false)Booltrue
true or(true)Booltrue

not

Computes logical negation.

TypeValue
InputBoola boolean value
OutputBooltrue if the input is false, and false if the input is true

Examples

ProgramTypeValueError
false notBooltrue
true notBoolfalse
1 +1 ==2 and(2 +2 ==5 not)Booltrue

==

Checks equality of boolean values.

TypeValue
InputBoola boolean value
q (param #1)Boolanother boolean value
OutputBooltrue if the input and q are identical, false otherwise

Examples

ProgramTypeValueError
false ==falseBooltrue
false ==trueBoolfalse
true ==falseBoolfalse
true ==trueBooltrue