The choose
function returns one of the specified objects based on a boolean parameter.
if()
, which has been deprecated.choose( boolean , object1, object2 )
boolean
object1
object2
If the boolean parameter is true, the first object is returned; otherwise, the second object is returned.
Supported.
© 2005–2017 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/XPath/Functions/choose