I cut and paste the script_device_switch.lua from wiki and create the "Switch"
when I run the script a get this error
I cut and paste the script_device_switch.lua from wiki and create the "Switch"2016-04-06 17:29:28.027 Error: EventSystem: in /home/pi/domoticz/scripts/lua/script_device_switch.lua: /home/pi/domoticz/scripts/lua/script_device_switch.lua:2: unexpected symbol near 'if'
2016-04-06 17:29:28.018 (Switch) Light/Switch (Switch)