|> Home > Documentation > Latest documentation > Interchange tags > scratch|
Returns the contents of a scratchpad variable.
Tag expansion example
or similarly with positional parameters:
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.
The name of the scratchpad variable you would like to query.
Setting 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.
Set keep=1 if you want the tag to return a filtered result but do not want the filter to modify the scratchpad value itself.