==
detected DOK-SC1097==
is being used in an unexpected way. The two most common reasons for this is:
==
instead of =
.[ .. ]
or [[ .. ]]
.If you wanted to assign a literal equals sign, use quotes to make this clear:
var="=sum(A1:A10)"
var==value
Assignment:
var=value
Comparison:
[ "$var" = value ]