Home > Contents > Index >
Template Tag TOC  |   Alpha TOC  |   Tag Family TOC  |   Purpose TOC  |   Annotated TOC  |   Index 

 

SETVAR

Sets the value of a variable.

Syntax

Parameters

NAME (required)
Name of the variable to set.

VALUE (required)
Value to set the variable to.

Description

The SETVAR tag sets the value of a variable. The value of the variable exists for the duration of the page evaluation unless it is explicitly deleted using REMOVEVAR . For more information about variables, see the CS Developer's Guide.

errno

The value of errno is unchanged.

Example

This example sets the variable "color" to "red".

The next example assumes that the variable "color" has been set to "red" and appends "and blue".

The browser displays:

If a variable was set by loading a file or URL and the content contains Variables.varname syntax, then the variable values can be resolved by:

Any variables as part of the value of myvar are resolved before the value is reset.

See Also

REMOVEVAR
SETSSVAR

  Home > Contents > Index >

FatWire XML Tag Reference
Copyright 2005 by FatWire Software
All rights reserved.