Equals

From OxeyeWiki

(Difference between revisions)
Jump to: navigation, search
Jeb (Talk | contribs)
(Created page with '{{GUIMethod | WChar:equals(other) | This method checks if this string object is identical to another WChar string object. | {{MethodParam|other|A WChar|The other WChar object to ...')

Latest revision as of 22:41, 8 March 2009

WChar:equals(other)

This method checks if this string object is identical to another WChar string object.

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

Returns true if this object is equal to the other object, otherwise false. Will return false if the parameter is any other data type than WChar.

Daisymoon GUI Lib

Example

   local printBoolean = function(value) if (value) then print("true") else print("false") end end
   local textA = WChar("A")
   local textB = WChar("a")

   printBoolean(textA:equals(textB)) -- false, case sensitive
   printBoolean(textA:equals("A")) -- false, the parameter is not a WChar
   printBoolean(textA:equals(WChar("A"))) -- true
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox