Get
Overview
The Get standard function retrieves the value of a previously defined wiki page variable. This is useful when you want to control parts of the page from a single location in the markup.
Prototype
##Get(string [key])
Parameters
- Name: key [Required]
- Type: string
- Description: The name of the variable to retrieve the value of.
Examples
##Set(MyVariable, Green)
##Get(MyVariable)
##Color(##Get(MyVariable), This is some text)
Example Output
Green
This is some text
Shorthand
You can also set and get variables by using short hand, which is actually prefered for cleanliness.
Set variable:
${variableName = value}
Get variable:
${variableName}
See Also
Set
Function Calling Convention
Scope Function
Instruction Function
Standard Function
Related
- DefineSnippet - Sets a snippet variable to a block of wiki markup.
- Snippet - Injects the value of a previously defined snippet variable.
Last modified by admin @ 12/20/2022 10:52:20 AM