[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].
string_endswith('string value', 'test pattern')
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
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 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft
Recent Comments