Jump to content


Photo

wrong conversion of boolean expression into javascript


  • Please log in to reply
2 replies to this topic

#1 EvaF

EvaF
  • Members
  • 6 posts

Posted 03 May 2017 - 10:00 AM

Hello,

I 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)    


#2 Igor Savkic

Igor Savkic
  • Members
  • 164 posts

Posted 03 May 2017 - 02:03 PM

I don't know if this is being monitored by SMS team, so perhaps this is something to report directly to compiler (DWScript) author, Eric Grange?



#3 EvaF

EvaF
  • Members
  • 6 posts

Posted 03 May 2017 - 10:02 PM

ok, thanks for advice. I reported it to him






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users