示例#1
0
        /// <inheritdoc />
        protected override EvaluationResult DoEval(Context context, ModuleLiteral env, EvaluationStackFrame frame)
        {
            var condition = ConditionExpression.Eval(context, env, frame);

            if (condition.IsErrorValue)
            {
                return(condition);
            }

            return(IsTruthy(condition.Value) ? ThenExpression.Eval(context, env, frame) : ElseExpression.Eval(context, env, frame));
        }
示例#2
0
 public bool AreConditionsFilled(Character character)
 {
     return(ConditionExpression == null || ConditionExpression.Eval(character));
 }