Using Variables
Removing Variables
Note
Modifying Integer Variables
Using the No Set and Set Commands
Cisco Content Services Switch Administration Guide
8-10
To remove a variable from memory, use the no set command.
For example, enter:
no set MyVar
If MyVar exists, this line removes the variable from memory. If the variable does
not exist, the CLI displays an error message informing you of this invalid action.
To permanently remove a session variable, you must also remove it from the user's
profile.
This section includes the following topics:
Using the No Set and Set Commands
•
Using Arithmetic Operators
•
Using the Increment and Decrement Operators
•
To modify a variable, use the no set command to remove a variable from memory,
then use the set command with the same variable name to reset the variable with
a different value. You can also issue a set command on the same variable multiple
times without using the no set command in between set commands.
Example 1:
set MyVar "1"
no set MyVar
set MyVar "2"
Example 2:
set MyVar "1"
set MyVar "2"
Chapter 8
Using the CSS Scripting Language
OL-5647-02