LassoScript Utility
Basics Browse Detail

[String]

Tag Link [String] Category String
Type Substitution Source Available No
Support Preferred Version 5.0
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

Description

[String] casts a value to data type string. Every data type has a string representation.
- Integer and decimal values have their formatting rules applied.
- Maps, arrays, and pairs are displayed in a format suitable for inspecting the elements of the data type.
- Null values map to the empty string.
- Boolean values map to the strings 'True' and 'False'.

Syntax

[String: 'Value']

Parameters

Required Parameters
Value The value which will be converted into a string.

Examples

To cast a value into a string:

Use the [String] tag. The following example performs a string operation on a series of numbers by casting them to string values before applying the concatenation symbol to them.

[Output: (String: 1) + (String: 1)]

11

Related Tags

Category Tags