LassoScript Utility
Basics Browse Detail

[Params_Up]

Tag Link [Params_Up] Category Custom Tag
Type Substitution Source Available No
Support Preferred Version 5.0
Change Unchanged Data Source Any
Output Type Array Security Tag
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0

Description

[Params_Up] returns the [Params] array from an enclosing custom tag. This tag should only be called from tags which will be used within [Define_Tag] ... [/Define_Tag] tags.

This tag is primarily useful for creating a new tag like [Named_Param] that parses through the parameters of the custom tag in which it is called.

Syntax

[Params_Up]

Parameters

No Parameters Required.

Examples

To inspect the parameters of the tag which called a custom tag:

Use the [Params_Up] tag. The following tag logs the parameters of the custom tag in which it is called to the console. Note that the parameters of the [Log_Params] tag itself are not logged and this tag cannot be called on a format file by itself.

[Define_Tag: 'Log_Params']
  [Log: -Window][Params_Up][/Log]
[/Define_Tag]