XML : How to use "if statements" in "let" statements in xquery

I wish to do the following:

  let $foo :=      if (5 = 5)      then          return <bye/>      else          return <hi/>    

But unfortunately the above doesn't work.

How do I do if statments for let statements.

No comments:

Post a Comment