Subject:problem with Conditional Expressions Author:Karen Lopez Date:30 Apr 2010 11:57 AM
Hi, I'm learning Xquery and I have some troubles to do the follow!
let $a := "1"
let $b := "2"
return
if ($a = "1")
then(
let $string := concat($a, "Some")
)
else()
if ($b = "2")
then(
let $string := concat($b, "Any")
)
else()
I need to validate the two variables with the two IFs and I canīt use ELSE IF because It isnot the same... How I can use various conditionals in a only return statement... thank you so much...