Error in SimpleScript.Runtime/Statements/AssignmentStatement.cs

Mar 24, 2014 at 5:05 PM
I think you made a mistake in SimpleScript.Runtime/Statements/AssignmentStatement.cs.
        if (elem is SymbolTableStringElement)
        {
            SymbolTableStringElement selem = (SymbolTableStringElement)elem;
            if (exp.Type == SimpleScriptTypes.Double)
            {
                selem.Value = exp.Evaluate().ToString();
            }
            else
            {
                throw new InvalidOperationException("Invalide assignment.");
            }
        }
Here you check if the expression is a Double. Shouldn't this be a check if the expression is a String?