webMathematica`
MSPValue
MSPValue[var]
returns the value of var; it returns a null string if var has no value
MSPValue[var, def]
returns the value of var; it returns def if var has no value
Details
- MSPValue is a utility function that is useful for extracting the value of variables.
- The following exceptions can be thrown by MSPValue.
-
MSPException["ValueError"] if the value is not a string, this indicates a programmatic error by the page author MSPException["VariableError"] if the variable is not a Mathematica symbol, this indicates a programmatic error by the page author
Examples
Basic Examples (1)
You can simulate how the function works by installing and loading the package.
The value of the variable $$expr is returned.