Lasso Soft Inc. > Home

[String_Concatenate]

[String_Concatenate] returns the concatenation of all specified parameters. Each parameter is cast to a string and then added to the output.

This tag can be used in a situation where casting individual values to string would make the code more difficult to read. [String_Concatenate: 1, 2, 3, 4] is easier to read than e.g. [Output: (String: 1) + (String: 2) + (String: 3) + (String:4)]

Note: This tag is equivalent in functionality to the [Output] tag.

  • Syntax
  • Parameters
[String_Concatenate: 'String Value', 'String Value']
Required Parameters
String Value The strings which should be concatenated.
Optional Parameters
Encoding Keyword Specifies the encoding for the tag's return value. Tags are encoded using -EncodeHTML by default if their value is output on a format file. No encoding is applied to nested tags unless an explicity encoding keyword is specified. One of -EncodeBreak, -EncodeHTML, -EncodeNone, -EncodeRaw, -EncodeSmart, -EncodeStrictURL, -EncodeURL, -EncodeXML.
Examples

To concatenate several values:

Use the [String_Concatenate] tag with each of the values specified. The following example concatenates values of several different data types.

[String_Concatenate: 'one', 2, 3.0, 'four']
Result:
one23.0four
Tag Link [String_Concatenate] Category String
Type Substitution Data Source Any
Support Preferred Version 2.5
Output Type String Security None
Implementation LCAPI Sets Lasso 7.0, Lasso 6.0, Lasso 5.0,LDML3x,LDML25

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