ioBroker / ioBroker.javascript

Script engine for JavaScript and Blockly
MIT License
320 stars 119 forks source link

[Bug]: And- Block is not working correct if or condition is inside #1572

Closed BrightM91 closed 1 month ago

BrightM91 commented 1 month ago

I'm sure that

Script type

Blockly

The problem

Screenshot 2024-05-13 170509 In the shown case, the whole block should only be true if (C1 or C2 ) and C3 are true I found the case that the whole block is true if C1 is true or (C2 and C3)

when I'm looking at the javascript version of the blockly generated they are connected like C1 || C2 && C3 but I think it should be (C1 || C2) && C3

iobroker.current.log (in debug mode!)

No response

Version of nodejs

v18.20.2

Version of ioBroker js-controller

5.0.19

Version of adapter

7.8.0

klein0r commented 1 month ago

Version of adapter

7.8.0

That's quite old. Already fixed in the current version

klein0r commented 1 month ago

Duplicate of #1540