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" }%
  • Parameters:
    Parameter DescriptionSorted 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.
  • Category: ApplicationsAndComponentsVariables?, DevelopmentVariables?
  • Related: GET, IF, SETGETDUMP, SetGetPlugin, SpreadSheetPlugin#FuncSET
Topic revision: r3 - 2012-11-13 - TWikiContributor
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2002-2020 Emerging Threats.