Page 1 of 1

What is wrong!? :)

Posted: Tuesday 18 April 2017 23:10
by Ricard1
Hi,

I get the following error in log when making states in this blocky valid for sending a fire alarm message:

2017-04-18 22:58:34.985 Error: EventSystem: Lua script error (Blockly), Name: Brandlarm_2 => [string "result = 0; weekday = os.date('*t')['wday']; ..."]:1: ')' expected near 'comparevariable'

What am I doing wrong?

Re: What is wrong!? :)

Posted: Tuesday 18 April 2017 23:18
by StanHD
You have not constructed the "If" blocks correctly.
It should be (X=On) Or (Y= On) Or (Z=On)
Not:- (X Or Y Or Z) = On

Hope that helps

Re: What is wrong!? :)

Posted: Tuesday 18 April 2017 23:45
by Ricard1
Yes thank you! :)