LassoScript Utility
Basics Browse Detail


Tag Link [Output] Category Output
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


[Output] outputs the result of a calculation or sub-tag. Each of the arguments to [Output] is cast to a string value and concatenated.

This tag should be used any time the result of a calculation should be displayed to a site visitor. For example, rather than simply using [4 + 5] to calculate a value it is preferred to use [Output: 4 + 5] to make the operation more clear.


[Output: 'String Value']

[Output: 'String Value', -EncodeNone]


Required Parameters
String Value The value which should be output.
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.


To output the value of a calculation:

Use the [Output] tag. The following example shows the results of a math calculation.

<br>[Output: 4 + 5 * 8 - 7]