Case difference in string comparisons

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Case difference in string comparisons

Cesar Rabak
According to the VW help for Characters and Strings at Compare by
sorting order: "Case differences make two strings unequal but not less
than or greater than each other."

However if we take the example (just below the quoted text):

| str1 str2 str3 |

str1 := 'north'.
str2 := 'North'.
str3 := 'northwest'.

When evaluating:

str1 = str2 returns false
str1 < str2 returns false
str1 > str2 returns true

Last result contradicts the quoted text, or maybe I'm missing something?

--
Cesar Rabak
GNU/Linux User 52247.
Get counted: http://counter.li.org/