MSPValue[var]
returns the value of var, returning a null string if var has no value.
MSPValue[var,def]
returns the value of var, returning def if var has no value.


MSPValue
MSPValue[var]
returns the value of var, returning a null string if var has no value.
MSPValue[var,def]
returns the value of var, returning 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 Wolfram Language symbol; this indicates a programmatic error by the page author
Text
Wolfram Research (1996), MSPValue, Wolfram Language function, https://reference.wolfram.com/language/WolframWebEngine/ref/MSPValue.html.
CMS
Wolfram Language. 1996. "MSPValue." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/WolframWebEngine/ref/MSPValue.html.
APA
Wolfram Language. (1996). MSPValue. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/WolframWebEngine/ref/MSPValue.html
BibTeX
@misc{reference.wolfram_2025_mspvalue, author="Wolfram Research", title="{MSPValue}", year="1996", howpublished="\url{https://reference.wolfram.com/language/WolframWebEngine/ref/MSPValue.html}", note=[Accessed: 25-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_mspvalue, organization={Wolfram Research}, title={MSPValue}, year={1996}, url={https://reference.wolfram.com/language/WolframWebEngine/ref/MSPValue.html}, note=[Accessed: 25-August-2025]}