Changes

Jump to navigation Jump to search
360 bytes added ,  13:17, 19 August 2014
Added example of switch with two input values corresponding to the same output
</pre>
'''Result:''' <code>red green pink</code>
 
The expression to evaluate can correspond to multiple input values.
 
'''Example:'''
<pre class="brush:xquery">
for $fruit in ("Apple", "Cherry")
return switch ($fruit)
case "Apple"
case "Cherry"
return "red"
case "Pear"
return "green"
case "Peach"
return "pink"
default
return "unknown"
</pre>
'''Result:''' <code>red red</code>
==Function Items==
administrator, editor
41

edits

Navigation menu