10.11.2022, 12:13
32/1/4 is most likely boolean so this if does not work:
It should be compared with true/false not 1/0. It can also be simply written like this:
Code:
if (statoonoff == 1) then
It should be compared with true/false not 1/0. It can also be simply written like this:
Code:
if statoonoff then