|  | 
| META TOPICPARENT | name="TWikiVariables" |   GET{"name"} -- get a variable  | 
|  | 
 Syntax: %GET{ "name" default="..." }% Parameters:      
 | 
|
| < <
 |      
     
     | "name" | Name of variable. | (required) |  | 
| > >
 |      
     
     | "name" | Name of variable, such as menu. May optionally contain a JSON path, such asmenu.File.Open. | (required) |  | 
|  |      
     
     | format="..." | Format with supported variables: •
 $namefor variable name•
 $valuefor variable value•
 $isdefinedexpanding to1or0depending if variable is defined or not•
 $issetexpanding to1or0depending if variable is logically true or false•
 $ispersistentexpanding to1or0depending if variable is persistent or not• all FormatTokens such as
 $dollar,$n,$percnt. | "$value" |  
     | default="..." | Text shown if variable is not defined, e.g. not found. This parameter overrides the format parameter. | ""(empty string) |  | 
|
| > >
 |      
     
     | store="..." | Specify a store name that holds the persistent variable. This assumes the variable was previously set with the same store name. | "" |  | 
|  | 
 Example: %GET{"lunch"}%returnsSushiif the following has been previously set:
 %SET{ "lunch" value="Sushi" }%- see more examples | 
|
| > >
 | 
 JSON Syntax: %GET{ name }%- see description. Example to set a JSON object and to get a JSON object with a JSON path: 
 %SET{ menu = { "File": { "New": [ "new", "F" ], "Open": [ "open", "F" ] }, "Edit": { "Copy": [ "cpy", "F" ], "Paste": [ "pst", "F" ] } } }%- set a JSON object %GET{ menu.File.Open }%- returns:["open","F"] | 
|  |  |