Jump to content

Conditional structures: Difference between revisions

(→‎{{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}}==
2,515

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.