13 lines
265 B
Text
13 lines
265 B
Text
if2: function [cond1 cond2 both one two none][
|
|
when [
|
|
and? cond1 cond2 -> do both
|
|
cond1 -> do one
|
|
cond2 -> do two
|
|
true -> do none
|
|
]
|
|
]
|
|
|
|
if2 false true [print "both"]
|
|
[print "only first"]
|
|
[print "only second"]
|
|
[print "none"]
|