Task

Show how to represent the boolean states "true" and "false" in a language.

If other objects represent "true" or "false" in conditionals, note it.



Related tasks

   Logical operations


boolTrue = true
boolFalse = false
 
if boolTrue then print "boolTrue is true, and its value is: " + boolTrue
 
if not boolFalse then print "boolFalse is not true, and its value is: " + boolFalse
 
mostlyTrue = 0.8
kindaTrue = 0.4
print "mostlyTrue AND kindaTrue: " + (mostlyTrue and kindaTrue)
print "mostlyTrue OR kindaTrue: " + (mostlyTrue or kindaTrue)