on 10-06-2007 10:19 AM
Hi all,
I would like to know whether we can use relational operators (< , > ,<= ,etc) in the switch expression. Since the available list of operands (= ,not equals, contains pattern, exist) dont contain these relational operators, how to go about when the switch conditions require the use of relational operators?
(For ex, i want to check whether a particular element is less than a particular value)
Aarthi,
To add, see the following usage of xPath
<a href="/people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination">/people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination</a>
Regards,
Sudharshan N A
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Aarthi,
not direct, but indirect via a X-Path expression, for example:
boolean(//myField < 100) = true
(is value of XML field myField less than 100?)
Regards,
Udo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Aarthi,
the SDN editor does not show that expression correctly, i try it once again (with button "Code")
boolean(//myField & l t ; 100) = true
That doent work either. You have to put the characters <i>& l t ;</i> without spaces. The SDN view makes a < from that, what would give you of course a syntax error.
Regards,
Udo
Message was edited by:
Udo Martens
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.