Lasso Soft Inc. > Home

[Params]

[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.

  • Syntax
  • Parameters
[Params]
Examples

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)]
[/Define_Tag]

[Param_Echo: 'One', -Two='Three', 'Four'='Five', -Six, 7, 8=9]
Result:
(array: (One), 
  (pair: (-Two)=(Three)), 
  (pair: (Four)=(Five)), 
  (-Six), 
  (7),
  (pair: (8)=(9))]
Tag Link [Params] Category Custom Tag
Type Substitution Data Source Any
Support Preferred Version 5.0
Output Type Array Security Tag
Implementation Internal Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft