RosettaCodeData/Task/Conditional-structures/Jq/conditional-structures-3.jq
2017-09-25 22:28:19 +02: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