public override ExpressionResult Invoke() { var result = new MathExpression(Expression, Memory).Invoke().Data; Memory.SetValue(result, Name.Text); return(ExpressionResult.Default); }
public override ExpressionResult Invoke() { Memory.Create(Name.Text, Type.Text); if (Expression.Length > 0) { var result = new MathExpression(Expression, Memory).Invoke().Data; Memory.SetValue(result, Name.Text); } return(ExpressionResult.Default); }
public IfExpression(MathExpression condition, Expression body) { Condition = condition; Body = body; }