undefined values stop calculation of the formula

This commit is contained in:
cuqmbr 2021-12-04 20:41:50 +02:00
parent 68e7827221
commit 832f5c1c9b

View File

@ -66,6 +66,7 @@ function Evaluate() {
let formulaValuesRPNArray = ConvertCharsToValues(formulaRPNArray);
let result = SolveRPNFormula(formulaValuesRPNArray);
if (result == undefined) return;
let readableResult = ConvertToReadableResult(result);
let resultField = document.getElementById('result');
@ -272,6 +273,7 @@ function StepByStep() {
let formulaValuesRPNArray = ConvertCharsToValues(formulaRPNArray);
let result = SolveRPNFormula(formulaValuesRPNArray);
if (result == undefined) return;
let readableResult = ConvertToReadableResult(result);
let resultField = document.getElementById('result');