• Hey, guest user. Hope you're enjoying GameParadise! Have you considered registering for an account? Come join us and add your take to the daily discourse.

Help: Variables > Local Variables

 
 

You can define some reusable bits of text in a page as local variables. Local variables live only in the current context; for example, templates cannot access local variables set by another context or provide local variables to a different context.

SET
Defines a local variable with the name specified by the first argument. The second argument sets the value.
GET
Retrieves a local variable with the name specified by the argument.
EACH
Splits a local variable into segments, and for each segment, outputs a phrase with the term {text} replaced by the segment's contents. The first argument is the name of a local variable that contains the segments. The second argument is the delimiter that should be used to split the local variable into segments; if empty, this defaults to |. The third argument is the number of segments; if empty, all occurrences of the delimiter will generate segments. The final argument is the phrase, containing {text}, where each segment will be applied. The phrase will repeat until all segments are applied.
REPLACE
Performs a text replacement. The first argument specifies the text to search for, and the second argument is the text that replaces any found instances. The third argument is the overall text that the search occurs against.
 
Back
Top