2 Replies Latest reply: May 28, 2010 9:22 AM by GKaiseril RSS

    Simple compare not working correctly(?)

    Bill95722 Community Member

      I'm comparing two text fields: if (a.rawvalue < b.rawvalue)

      a contains "name name - sf" and b contains "name name - la" (read these as entered, the "name name" are identical)

       

      Shouldn't a be greater than b? In my script the "la" is comparing higher then the sf!

       

      Does the dash cause the compare to stop before the la and sf? Or what?

      Does case matter?

       

      Thanks!