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
  • Parameters
[String Variable->(Contains: 'String Value')]
Required Parameters
String Value The string which is to be examined.
Pattern The pattern which should be checked.
Examples

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

Use the [String->Contains] tag within [If] ... [/If] tags. If the field Company_Name contains the word Blue then the company name is colored blue using <font> ... </font> tags, otherwise it is displayed normally.

[If: (Field: 'Company_Name)->(Contains: 'Blue')]
  <font color="blue">[Field: 'Company_Name']</font>
[Else]
  [Field: 'Company_Name']
[/If]
Result:
<font color="blue">Blue World</font>
Tag Link [String->Contains] Category String
Type Member Data Source Any
Support Preferred Version 5.0
Output Type Boolean Security None
Implementation Internal Sets Lasso 6.0, Lasso 5.0

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