LassoScript Utility
Basics Browse Detail

[String_Concatenate]

Tag Link [String_Concatenate] Category String
Type Substitution Source Available No
Support Preferred Version 2.5
Change Unchanged Data Source Any
Output Type String Security None
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0, Lasso 3.x, Lasso 2.5

Description

[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

[String_Concatenate: 'String Value', 'String Value']

Parameters

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.

Change Notes

This tag can be used to concatenate together many strings. All parameters of the tag are automatically converted to strings.

This tag is equivalent to using the + string concatenation symbol.

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']

one23.0four

Related Tags

Category Tags