|
next
|
 Subject: Checking for Values in an Array Author: Brian Dong Date: 22 May 2008 07:49 PM
|
Hi,
I'm new to Stylus Studio and playing with XQuery. I need to evaluate whether a node matches one of 10 different values. Typically I'd be using an array to do this but I'm not sure how it would work in XQuery.
In VB I'd do something like:
If StateProvince In ("BC", "AB", "SK", "MB", "ON", "PQ", "NB", "NL", "NS", "PE") Then
"Canada"
Else "United States"
End If
|
|
|