RosettaCodeData/Task/Extend-your-language/Jq/extend-your-language-1.jq
2023-07-01 13:44:08 -04:00

6 lines
143 B
Text

def if2($c1; $c2; both; first; second; neither):
if $c1 and $c2 then both
elif $c1 then first
elif $c2 then second
else neither
end;