MSPSetDefault[ var,value]
sets the variable var to value if it does not have a value.


MSPSetDefault
MSPSetDefault[ var,value]
sets the variable var to value if it does not have a value.
Details
- This is a utility function for setting the default values of variables.
- The following exceptions can be thrown MSPSetDefault:
-
MSPException["ParseError"] if the value cannot be interpreted by the Wolfram Kernel MSPException["SecurityError"] if the value does not pass the security test 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), MSPSetDefault, Wolfram Language function, https://reference.wolfram.com/language/WolframWebEngine/ref/MSPSetDefault.html.
CMS
Wolfram Language. 1996. "MSPSetDefault." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/WolframWebEngine/ref/MSPSetDefault.html.
APA
Wolfram Language. (1996). MSPSetDefault. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/WolframWebEngine/ref/MSPSetDefault.html
BibTeX
@misc{reference.wolfram_2025_mspsetdefault, author="Wolfram Research", title="{MSPSetDefault}", year="1996", howpublished="\url{https://reference.wolfram.com/language/WolframWebEngine/ref/MSPSetDefault.html}", note=[Accessed: 25-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_mspsetdefault, organization={Wolfram Research}, title={MSPSetDefault}, year={1996}, url={https://reference.wolfram.com/language/WolframWebEngine/ref/MSPSetDefault.html}, note=[Accessed: 25-August-2025]}