RosettaCodeData/Task/Conditional-structures/Jq/conditional-structures-3.jq
2023-07-01 13:44:08 -04:00

4 lines
216 B
Text

if empty then 2 else 3 end # produces no value
if 1 then 2 else 3 end # produces 2
if [false, false] then 2 else 3 end # produces 2
if (true, true) then 2 else 3 end # produces a stream: 2, 2