LassoScript Utility
Basics Browse Detail

[Process]

Tag Link [Process] Category Technical
Type Substitution Source Available No
Support Preferred Version 5.0
Change Unchanged Data Source Any
Output Type String Security Tag
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0
Lasso 3 Equivalent [Lasso_Process]

Description

[Process] processes its parameter as a document containing Lasso code. The string passed to [Process] must use normal Lasso delimiters like [ ... ] and <?LassoScript ... ?> around embedded Lasso code. All of the surrounding text will be returned along with the results of the processed code.

The [Process] tag expects its parameter to be a Unicode string. Passing in text encoded in a character set such as ISO-8859-1 may cause unexpected results.

The -Name parameter can be returned within the processed code usng the [Include_CurrentPath] tag and will be used for error reporting.

Warning: For maximum security, untrusted third-party Lasso code should never be executed on your server. Only code written by trusted developers should be executed.

Syntax

[Process: 'Lasso Code']

[Process: '[Var(\'myVariable\')]']

[Process: '<?LassoScript ... ?>']

[Process: (Include_Raw: 'myfile.lasso')]

Parameters

Required Parameters
LDML Code LDML code which is to be executed. The results of processing the LDML code are returned.
Optional Parameters
-Name An optional name for the script. This name will be reported in any error messages that are generated by the code being processed.

Examples

To process LDML code contained within a database field:

Use the [Process] tag. The following example would process LDML code contained in the field Code.

[Process: (Field: 'Code')]