Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
12
Task/Logical-operations/LIL/logical-operations.lil
Normal file
12
Task/Logical-operations/LIL/logical-operations.lil
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
# 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue