/// <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)); }
public bool AreConditionsFilled(Character character) { return(ConditionExpression == null || ConditionExpression.Eval(character)); }