insert into macroheader values ('SET LIGHT STATUS','SET LIGHT STATUS TO ON',0,0,1); insert into macrodetail values ('SET LIGHT STATUS',1,10,'LIGHT STATUS',NULL,'if("{LIGHT STATUS}"="Off","On","On")',0,'');