LassoScript Utility
Basics Browse Detail


Tag Link [Define_Constant] Category Custom Tag
Type Process Source Available No
Support Preferred Version 8.0
Change Unchanged Data Source Any
Output Type None Security None
Implementation Internal Sets Lasso 8.5, Lasso 8.0


[Define_Constant] defines a constant value which can then be called like a tag. The tag requires two parameters the name of the constant and the value for the constant. The value can be of any data type. The constant value is frozen so cannot be modified unless it is first copied into a variable.

Note - If a -Namespace parameter is specified then it must appear between the name of the constant and the value.


[Define_Constant: 'myconstant', 'value']

[Define_Constant: 'myconstant', -Namespace='namespace_', 'value']


Required Parameters
Name The name for the constant (the tag name).
Value The value for the constant (the tag result).
Optional Parameters
-Namespace The namespace for the constant. This parameter must appear between the name and the value.


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