Difference: VarSET (1 vs. 2)

Revision 22012-01-06 - TWikiContributor

 
META TOPICPARENT name="TWikiVariables"

SET{"name" value="..."} -- set a variable

  • Set a named variable that can be retrieved later with %GET{}%. No output is shown, e.g. %SET{}% resolves to an empty string. The %SET{}% and %GET{}% variables are handled by the SetGetPlugin.
  • Syntax: %SET{ "name" value="..." remember="1" }%
  • Supported attributes:
    Attribute Comment
    <-- -->
    Sorted ascending
    Default
    remember="1" If set, the variable will be stored persistently so that it can be used later in any TWiki topic. See important notes. "0"
    "name" Name of variable. Alphanumeric characters, dashes and underscores can be used. (required)
    value="..." Value of variable. Escape double quotes with backslash. (required, may be empty)
  • Example: %SET{"lunch" value="Sushi"}% - see more examples.
Changed:
<
<
>
>
 

Revision 12011-04-04 - TWikiContributor

 
META TOPICPARENT name="TWikiVariables"

SET{"name" value="..."} -- set a variable

  • Set a named variable that can be retrieved later with %GET{}%. No output is shown, e.g. %SET{}% resolves to an empty string. The %SET{}% and %GET{}% variables are handled by the SetGetPlugin.
  • Syntax: %SET{ "name" value="..." remember="1" }%
  • Supported attributes:
    Attribute Comment Default
    "name" Name of variable. Alphanumeric characters, dashes and underscores can be used. (required)
    value="..." Value of variable. Escape double quotes with backslash. (required, may be empty)
    remember="1" If set, the variable will be stored persistently so that it can be used later in any TWiki topic. See important notes. "0"
  • Example: %SET{"lunch" value="Sushi"}% - see more examples.
  • Related: GET, IF, SetGetPlugin, SpreadSheetPlugin#FuncSET
 
This site is powered by the TWiki collaboration platform Powered by Perl This site is powered by the TWiki collaboration platformCopyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.VarSET.