From d6d7ae96cf2ee501e37211a13a377a5e3a014a5f Mon Sep 17 00:00:00 2001 From: William Bell Date: Tue, 28 Mar 2023 17:00:32 +0100 Subject: [PATCH] fix squareroot bug --- src/translate.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/translate.go b/src/translate.go index 76efead..be99262 100644 --- a/src/translate.go +++ b/src/translate.go @@ -80,6 +80,12 @@ func translateVal(code UNPARSEcode, index int, codelines []UNPARSEcode, isLine i return resp, worked, err, i } } + if isAutoAsignVariable(code) { + resp, worked, err, i = parseAutoAsignVariable(code, index, codelines, isLine) + if worked { + return resp, worked, err, i + } + } if isNumber(code) { return parseNumber(code) } else if isString(code) { @@ -98,12 +104,6 @@ func translateVal(code UNPARSEcode, index int, codelines []UNPARSEcode, isLine i return resp, worked, err, i } } - if isAutoAsignVariable(code) { - resp, worked, err, i = parseAutoAsignVariable(code, index, codelines, isLine) - if worked { - return resp, worked, err, i - } - } { operation, worked, err, step := parseOperations(code, index, codelines) if worked {