XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Go to previous topicPrev TopicGo to next topicNext Topic
Posttop
Karen LopezSubject: 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...

 
Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.