Testing Numeric Values

XPath automatically detects whether a node value is a string or number. Comparison values, such as [Not] Less Than, [Not] Less Than Or Equal To, [Not] Equal To, [Not] Greater Than or Equal To, and [Not] Greater Than, apply to numeric values, as you’d expect, and also to string values. When testing string values, these operators test the numeric Unicode value of the first character. If the string has more than one character, the test continues until a mismatch occurs with a successive character. If no character mismatch occurs, the values are equal; otherwise, the result is greater or less than the comparison value. If the comparison value you type in the text box is “BB”, a “BC” field value returns true for the Is Greater ...

Get Introducing Microsoft® Office InfoPath™ 2003 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.