==Ternary If==
The [https://en.wikipedia.org/wiki/%3F : ternary if] operator provides a short syntax for conditions. It is also called '''conditional operator''' or '''ternary operator'''. In most languages the syntax is <code>a ? b : c</code>. As <code>?</code> and <code>:</code> have already been taken in XQuery, the Perl 6 syntax is used:
<pre class="brush:xquery">