wrong conversion of boolean expression into js

Issue #104 resolved
Eva Freimann created an issue

hello, I am using SMS and met to a little problem:

the pascal expression is converted into javascript by wrong way

not (DrawObject in [doPanel])        ---->  !Self.fDrawObject==2            INCORRECT

instead of expecting:

not (DrawObject in [doPanel])        ----> !(Self.fDrawObject==2)    

Another expressions are converted by correct way

not (DrawObject = doPanel)                  -----> !(Self.fDrawObject==2)                         
not (DrawObject in [doPanel,doBuilding])    -----> !(Self.fDrawObject==2||Self.fDrawObject==3)  

Comments (1)

  1. Log in to comment