(2 vs. 3) VarGET < TWiki < TWiki

Home - this site is powered by TWiki(R)
TWiki  VarGET (2 vs. 3)

Welcome | Register | Changes | Topics | Index | Search | Go

 <<O>>  Difference Topic VarGET (3 - 2012-04-18 - TWikiContributor)
 
META TOPICPARENT name="TWikiVariables"

GET{"name"} -- get a variable

  • Get the value of a named variable, previously set with %SET{}%. The %SET{}% and %GET{}% variables are handled by the SetGetPlugin.
  • Syntax: %GET{ "name" default="..." }%
  • Supported attributes:
    Attribute Comment Default
    "name" Name of variable. (required)
    default="..." Text shown if variable is not found. "" (empty string)
Changed:
<
<
  • Example: %GET{"lunch"}% returns Sushi if the following has been previously set:
    %SET{ "lunch" value="Sushi" default="undecided" }% - see more examples
>
>
  • Example: %GET{"lunch"}% returns Sushi if the following has been previously set:
    %SET{ "lunch" value="Sushi" }% - see more examples
 

View | History: r5 < r4 < r3 < r2 | More

This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 1999-2025 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.VarGET.

Revision r5 - 2015-07-09 - 23:59:27 - TWikiContributor Edit

(%REVTITLE2% vs. %REVTITLE1%) VarGET < TWiki < TWiki