RosettaCodeData/Task/Conditional-structures/Jq/conditional-structures-3.jq

5 lines
216 B
Text
Raw Permalink Normal View History

2016-12-05 23:44:36 +01:00
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