Lasso Soft Inc. > Home

[String_EndsWith]

[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
  • Parameters
[String_EndsWith: 'String Value', -Find='String Value']
Required Parameters
String Value The string which is to be checked.
-Find The pattern which is to be checked at the end of the string.
Examples

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.

[String_EndsWith: 'default.lasso', -Find='.lasso']
Result:
True
Tag Link [String_EndsWith] Category String
Type Substitution Data Source Any
Support Preferred Version 2.5
Output Type Boolean Security None
Implementation LCAPI Sets Lasso 7.0, Lasso 6.0, Lasso 5.0,LDML3x,LDML25

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 2014 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft