LassoScript Utility
Basics Browse Detail

>> Contains

Tag Link >> Contains Category Symbol
Type Symbol Source Available No
Support Preferred Version 5.0
Change Unchanged Data Source Any
Output Type Boolean Security None
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0


>> performs checks to see if the string defined by the left parameter contains the string defined by the right parameter. It returns True if it does or False otherwise.


[If: Left_Parameter >> Right_Parameter]

If: Left_Parameter >> Right_Parameter;


Required Parameters
Left_Parameter The string to be checked for inclusion of the substring.
Right_Parameter The substring to be checked.


To return a result if one value contains another:

Use the contains symbol >> within an opening [If] tag. The following example checks if the string 'abcdef' contains the string 'abc'. The contents of the [If] ... [/If] tags is returned since the condition is True.

[If: 'abcdef' >> 'abc']
  The second string is contained in the first string.

The second string is contained in the first string.