main
bool b1 // b1 == false
bool b2 = b1.copy // b2 == false
Bool is reprensentation of boolean value, having either true or false as value.
Creates a copy of source.
main
bool b1 // b1 == false
bool b2 = b1.copy // b2 == false
Test whether both parameters are true.
main
bool b1 = false
bool b2 = true
bool result = b1 and b2 // result == false
b1 = true
result = b1 and b2 // result == true
Test whether either parameter is true.
main
bool b1 = false
bool b2 = true
bool result = b1 or b2 // result == true
b2 = false
result = b1 or b2 // result == false
Test whether either, but not both of the parameters are true.
main
bool b1 = false
bool b2 = true
bool result = b1 xor b2 // result == true
b1 = true
result = b1 xor b2 // result == false
Negates bool provided as parameter.
main
bool b1 = false
bool b2 = not b1 // b2 == true
Literal defining true value.
main
bool b = true // b == true
Literal defining false value.
main
bool b = false // b == false
Test whether parameters have the same value.
main
bool b1 = false
bool b2 = true
bool result = b1 == b2 // result == false
Test whether parameters have different values.
main
bool b1 = false
bool b2 = true
bool result = b1 != b2 // result == false