LessThan

From OxeyeWiki

Jump to: navigation, search

WChar:lessThan(other)

Compares this string object with another string object and returns true if this is "less" than the other. The method uses simple byte value comparisons, so 'Z' is "less" than 'a', for example.

Parameter Expected Type Description
other A WChar The other text object to compare with.
Returns

Returns true if this object is considered to be less than the other text object. Comparison to other data types will always return false.

Daisymoon GUI Lib

Example

   local text = WChar("abcde")
   if text:lessThan(WChar("bcdef")) then
      print("less!")
   else
      print("more!")
   end
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox