simSetDef
simSetDef(
g_variableName
g_value
)
=> t
Description
Sets the g_variableName variable to g_value only if the variable is not yet set or if the symbol variableName evaluates to nil. If the variable was set prior to calling this function, and the simGenWarnings variable is not nil, a warning message is printed to stdout that the value of the variableName variable is overridden.
The function is defined in /etc/skill/si/caplib/util.ile. You can modify this function.
Arguments
Value Returned
Examples
simSetDef('simCapUnit 1.0e-15)
Related Topics
Return to top