Lasso Soft Inc. > Home

[String->Equals]

[String->Equals] returns whether the parameter of the tag is equal to the base string. This tag performs exactly the same comparison as the == symbol.

This tag does not take the case of the strings into account when comparing them unless the optional -Case parameter is used.

  • Syntax
  • Parameters
['String'->(Equals: 'String')]
Required Parameters
String Value The string which is to be compared against the base string.
Optional Parameters
-Case Forces case to be taken into account when comparing the strings.
Examples

To compare two strings:

Use the [String->Equals] tag. The following example compares the base string to the first paramter of [String->Equals]. True is returned since the two strings have the same value.

[If: 'Quick fox'->(Equals: 'QUICK FOX')]True[Else]False[/If]
Result:
True
Tag Link [String->Equals] Category String
Type Member Data Source Any
Support Preferred Version 6.0
Output Type Boolean Security None
Implementation LCAPI Sets Lasso 7.0, Lasso 6.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