enum Color Red Green Blue class P def main pass def directTest c = Color.Red if c # .error. Cannot treat enums as truth values pass def notTest c = Color.Red if not c # .error. Cannot treat enums as truth values pass def andTest c = Color.Red d = Color.Blue if c and d # .error. Cannot treat enums as truth values pass def orTest c = Color.Red d = Color.Blue if c or d # .error. Cannot treat enums as truth values pass