Lasso Soft Inc. > Home

[ string->contains ]


[String->Contains] returns True if the string contains the parameter as a substring. Requires a single string parameter. The test is not case sensitive.

  • Syntax
'String Variable'->contains('String Value')
  • Beginner

To change the color of text if it begins with the word Lasso:

Use the [String->Contains] method within the [If] ... [/If] conditional. If the string Company_Name contains the word Lasso then the company name is colored blue using ... tags, otherwise it is displayed normally.


local(Company_Name) = 'LassoSoft'
  '<font color="blue">'+#Company_Name+'</font>'


<font color="blue">LassoSoft</font>

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