diff --git a/src/Evaluator/Evaluator.cpp b/src/Evaluator/Evaluator.cpp index 7f6feca..baa5d5c 100644 --- a/src/Evaluator/Evaluator.cpp +++ b/src/Evaluator/Evaluator.cpp @@ -291,6 +291,10 @@ namespace Porygon::Evaluation { if (!leftValue->EvaluateBool()) return new BooleanEvalValue(false); } + else if (operation == BoundBinaryOperation::LogicalOr) { + if (leftValue->EvaluateBool()) + return new BooleanEvalValue(true); + } auto rightValue = this -> EvaluateExpression(expression->GetRight()); if (operation == BoundBinaryOperation::Equality){ return new BooleanEvalValue(leftValue->operator==(rightValue.Get()));