RosettaCodeData/Task/Logical-operations/LIL/logical-operations.lil

13 lines
255 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
# Logical operations, in LIL
set first [expr 1 == 1]
set second [expr 1 == 0]
func and-or-not {a b} {
print a $a b $b
print "a AND b" [expr $a && $b]
print "a OR b " [expr $a || $b]
print "NOT a " [expr !$a]
}
and-or-not $first $second