setq
setq(s_variableNameg_newValueExp) =>g_resultsetq(s_variableName=g_newValue) =>g_result
Description
Sets a variable to a new value. setq is the same as the assignment (=) operator. This is a syntax form.
The symbol s_variableName is bound to the value of g_newValueExp. The first argument to setq is not evaluated but the second one is.
Arguments
Value Returned
Examples
Assigns the value 5 to the variable x.
x = 5
=> 5
Assigns the value 5 to the variable x.
setq( x 5 )
=> 5
Assigns the symbol a to the variable y.
y = 'a
=> a
Related Topics
Return to top