Beispiel #1
0
        public override void EvaluateOverride(Interpreter interpreter, Citation citation)
        {
            if (Variable == null)
            {
                throw new System.Exception();
            }

            var value = citation[Variable];

            var text = value switch
            {
                ITextVariable textVariable => textVariable.Value,
                INumberVariable numberVariable => RenderNumber(interpreter, numberVariable),
                _ => null
            };

            if (text != null)
            {
                interpreter.Push(text, this);
            }
        }
 public bool Equals(ITextVariable other)
 {
     return(this._Value == other.Value);
 }