Lasso Soft Inc. > Home

[ string->endsWith ]

Method

[String->EndsWith] returns True if the string object ends with the string parameter, False otherwise. Requires a single string parameter. The test is not case sensitive.

An optional -Case parameter compares the string taking case into account.

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

To determine whether a string object ends with a pattern:

Use the [String->EndsWith] method. The following example tests whether the string object "LassoSoft" ends with the string parameter "Soft", and returns True.

Code

'LassoSoft'->endsWith('Soft')

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