Lasso Soft Inc. > Home

[ string->equals ]

Method

[String->Equals] compares the string parameter against the string object, and returns True if they are equivalent, else False. This method performs exactly the same comparison as the == symbol. This method does not take the case of the strings into account when comparing them unless the optional -Case parameter is used.

  • Syntax
'String Object'->equals('String Pattern')
'String Object'->equals('String Pattern', -case)
Examples
  • Beginner

To compare two strings:

Use the [String->Equals] method. The following example compares the string object to the first parameter of [String->Equals]. True is returned since the two strings have the same value.

Code

'Quick rhino'->equals('Quick rhino')

Result

true

Recent Comments

No Comments found

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft