Conditional structures: Difference between revisions
→{{header|jq}}: mention //
(→{{header|Kotlin}}: Updated example see https://github.com/dkandalov/rosettacode-kotlin for details) |
(→{{header|jq}}: mention //) |
||
Line 2,388:
else error("unexpected value: \(.)")
end</lang>
Since jq's <tt>and</tt> and <tt>or</tt> are short-circuiting, they can also be used for branching, as can the binary disjunctive operator `//`.
=={{header|Kotlin}}==
|