This page is part of a static HTML representation of the TiddlyWiki at https://tiddlywiki.com/

getvariable Operator

30th March 2019 at 10:01am
purposeselect all values of variables named in the input titles
inputa selection of variable names
parameterignored
outputthe values of each of the variables named in the input titles (or blank if the variable is not defined)

Learn more about how to use Filters

Introduced in v5.1.20 The usual way to retrieve a variable value within a filter is with the angle brackets notation. For example, [<currentTiddler>] will retrieve the value of the variable called currentTiddler.

The getvariable filter operator provides an alternative way to retrieve a variable. For example, [[currentTiddler]getvariable[]] is another way to retrieve the value of the variable currentTiddler.

The advantage of getvariable is that it makes it possible to work with variables whose name is computed, and not known in advance. For example, [<myvariable>getvariable[]] gets the value of the variable whose name is given in the variable myvariable.

Examples