Lasso Soft Inc. > Home

[ String_EndsWith ]

Method

[String_EndsWith] returns True if the string ends with the parameter. Requires a single string parameter. The test is not case sensitive.

This tag is equivalent to the member tag [String->EndsWith].

  • Syntax
string_endswith('string value', 'test pattern')
Examples
  • Beginner

To determine if a file name ends with an appropriate suffix:

Use the [String_EndsWith] tag. The following code checks the file name 'default.lasso' to see if it ends with the suffix '.lasso'. The tag returns True.

Code

string_endswith('default.lasso', '.lasso')

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