RosettaCodeData/Task/Extend-your-language/Arturo/extend-your-language.arturo
2026-02-01 16:33:20 -08:00

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"]