langs a-z
This commit is contained in:
parent
db842d013d
commit
d066446780
11389 changed files with 98361 additions and 1020 deletions
|
|
@ -0,0 +1,9 @@
|
|||
fn if2 cond1 cond2 body11 body10 body01 body00 {
|
||||
# Must evaluate both conditions, and should do so in order.
|
||||
# Negation ensures a boolean result: a true condition becomes
|
||||
# 1 for false; a false condition becomes 0 for true.
|
||||
let (c1 = <={! $cond1}; c2 = <={! $cond2}) {
|
||||
# Use those values to pick the body to evaluate.
|
||||
$(body$c1$c2)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue