![]() |
| > Home > Documentation > Latest documentation > Interchange tags > scratch |
|
scratchReturns the contents of a scratchpad variable. Summary
ExamplesTag expansion example
Perl example
or similarly with positional parameters:
The following lookup from the $Scratch hash reference is more efficient than calling $Tag->scratch(), and yields the same result:
DescriptionReturns the content of a scratchpad variable. A scratchpad variable can be set using one of [set], [seti], [tmp] or [tmpn], or can be set using the $Scratch hashref from within a block of Perl code. If you want to delete the scratchpad variable, after reading its value, then use the [scratchd] tag instead of this one. A scratchpad variable's value can be automatically initialised to a specified default value by making use of the ScratchDefault local (catalog.cfg) configuration directive. ParametersnameThe name of the scratchpad variable you would like to query. filterSetting filter="filter1 filter2" modifies the named scratchpad variable by running it through the specified filter(s). See the filters category for a list of standard filters. keepSet keep=1 if you want the tag to return a filtered result but do not want the filter to modify the scratchpad value itself.
|
| Home | Legal nonsense | Privacy policy | Contact us |