Set
Overview
The Set standard function defines a wiki page variable and sets its value. This is useful when you want to control parts of the page from a single location in the markup.
Prototype
##Set(string [key], string [value])
Parameters
- Name: key [Required]
- Type: string
- Description: The name of the variable.
- Name: value [Required]
- Type: string
- Description: The Value of the variable.
Examples
##Set(MyVariable, Green)
##Get(MyVariable)
##Color(##Get(MyVariable), 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
Get
Function Calling Convention
Scope Function
Instruction Function
Standard Function
Related
- DefineSnippet - Sets a snippet variable to a block of wiki markup.
- Get - Get wiki page variable value.
- Snippet - Injects the value of a previously defined snippet variable.