TCL
set command
.mdThe set BASIC program modifies the value of a D3 user shell variable.
Syntax
set {variable.name{={"|’}variable.value{"|’}}}
CAUTION: When setting a variable, it is important
never to use the @ or @$ prefix
as would be required if one were using that variable.
If set is executed with no arguments, then it functions identically to the penv command. This displays a list of the currently set user variables and their values.
If set is executed with a variable name, but with no variable value, then the variable is assigned a null value. To completely remove a variable, use the unset command.
It is possible to create variable values which contain other variable names for later expansion. To do this, enclose the entire variable value within single quotation marks. The quotation marks prevent the variable names from being translated immediately by the set command.
Example(s)
set mycv=1 display @$mycv 1
Referenced by
3 topics mention set command in its description.