You can simulate how the functions work by loading the package and setting the security content.
Here the variable
$$var is assigned to the value
"5+7"; note that the value is a string.
When
MSPToExpression evaluates, the parsed value of
$$var is returned.
If a variable has no value, an
MSPException is thrown.
Like
ToExpression,
MSPToExpression can take a format type for interpretation.
If the input value cannot be interpreted, an
MSPException is thrown.
If the input value does not pass the security test, an
MSPException is thrown.
Input can also be given in MathML.