Lasso Soft Inc. > Home

[String->Append]

[String->Append] casts the parameters to strings and appends them to the string variable. Modifies the string variable and returns no value. Requires at least one string parameter.

This tag should only be called on variables which contain a string value.

  • Syntax
  • Parameters
[String Variable->(Append: 'String Value']
Required Parameters
String Variable The base string which is to be modified.
String Value The string which should be appended to the base string.
Examples

To append a value to a string variable:

Use the [String->Append] tag. The following example shows a string variable named MyVariable that contains the words "The quick brown fox". The [String->Append] tag is used to add the rest of the phrase and then the entire value of MyVariable is output, "The quick brown fox jumped over the lazy dog!".

<?LassoScript
  Var: 'MyVariable'='The quick brown fox ';
  $MyVariable->(Append: 'jumped over the lazy dog!');
  Output: $MyVariable;
?>
Result:
The quick brown fox jumped over the lazy dog!
Tag Link [String->Append] Category String
Type Member Data Source Any
Support Preferred Version 5.0
Output Type None (Modifies in place) Security None
Implementation Sets 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