LassoScript Utility
Basics Browse Detail


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


[Params] returns an array of all the parameters passed to a custom tag. The array will contain single values or pairs depending on what parameters were passed.

The [Params] array will not contain any encoding keywords that were passed to the current custom tag.

The -Required and -Optional parameters for the [Define_Tag] ... [/Define_Tag] tags can be used to define named parameters. These named parameters will be automatically set to local variables within the custom tag. However, the parameters will also be avaiable within the [Params] array.




No Parameters Required.


To return a list of all the parameters of a custom tag:

Use the [Params] tag. The following tag simply echos its parameters back to the format file.

[Define_Tag: 'Param_Echo']
  [Return: (Params)]

[Param_Echo: 'One', -Two='Three', 'Four'='Five', -Six, 7, 8=9]

(array: (One), 
  (pair: (-Two)=(Three)), 
  (pair: (Four)=(Five)), 
  (pair: (8)=(9))]