Skip to main content

SB+ Expression Issue (tested on 5.2, 5.5.3)

  • July 28, 2026
  • 0 replies
  • 12 views

Kevin King
Forum|alt.badge.img+2

Had a customer report today that there’s a strange bug in the SB+ expression parser.  The sample he provided was this:

IF(1,170,””)”MR2”)

The spurious ) at the end should be a syntax error.  But it is not.    As long as all quotes are “, this returns either 170 or “)”MR2 depending on if the condition is true or false.  It also gets converted in EEGC as follows:

IF 1 THEN
   VALUE = 170
END ELSE
   VALUE = '")"MR2'
END

This is not a crisis, but I wanted to post this in case anyone else happens to make the same mistake we did, with that extra “)” at the end of an expression.