LassoScript Utility
Basics Browse Detail

( ) Parentheses

Tag Link ( ) Parentheses Category Delimiter
Type Delimiter Source Available No
Support Preferred Version 1.0
Change Unchanged Data Source Any
Output Type Any 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, Lasso 2.0, Lasso 1.x


Parentheses are used to surround sub-expressions and sub-tags. They affect the order of operation which Lasso uses to determine the result of an expression.

Any sub-expression within parentheses is evaluated as a unit and then the result is returned to the enclosing expression. 8 * 4 + 5 returns 37 since the multiplication operation is performed first, but 8 * (4 + 5) returns 160 since the parentheses force the addition to be performed first.

Parenthese should be used to group tag names with their parameters. In this tag [Output: Field: 'Name', -EncodeURL] the encoding keyword -EncodeURL is applied to the [Output] tag. In order to force it to be applied to the [Field] tag parenthese can be used as follows [Output: (Field: 'Name', -EncodeURL)]


[TagName: (SubTagName: Tag Parameters)]


No Parameters Required.


See the Lasso 8 Language Guide for examples of how to use this tag.