Skip to content

Variable method reference

These methods get and set variables in a string. The values of the variables are not persistent after the tags are run, and as such have to be defined before they are called.

{set:NAME|VALUE} - Sets a variable NAME to be VALUE. This is removed at runtime and not visible in the result.

JagTag: {set:foo|bar} foo is now bar
Command: ++tag example
Result: foo is now bar

{get:NAME} - Gets the variable NAME. The variable must exist, otherwise the variable will be undefined.

JagTag: {set:foo|bar} The variable foo is {get:foo}
Command: ++tag example
Result: The variable foo is bar

Source

variables.md