AddUsrVar ()

Add new variable through customized code.

Usage

AddUsrVar( name, exp, desc = None, clobber = False )

Parameters

name (string)
Name of new variable.
exp (string)
Expression of new variable.
desc (string)
Description of new variable.
clobber (boolean)
The parameter value will be overwritten in data base if clobber is true.

Return Value

None

Errors

The exp must be valid.

Description

This routine adds a new variable through customized code. Variable name, expression and description are given by name, exp and desc. If the clobber is true, the parameter value will be overwritten in the data base. For example,
AddUsrVar( name='Var1',exp = '1+2', desc = 'Variable 1' )