17.04.2024, 22:13
(17.04.2024, 21:36)cgn Wrote: Sending emails with my W4K is working. Once a day, I'd like to send an email. The message should depend on the vealue of the group values. This message should be list, of all values, which are below a certain limit - in this case 85. I tried the following code - synax error. Any idea?
Code:for i = 0, 30, 1 do
SP = grp.getvalue('35/1/' ..i)
if (SP < 85) then
message = 'Alert: ' '35/1/' ..i '<br>'
end
end
...missing string concat after Alert: string...
Code:
for i = 0, 30, 1 do
SP = grp.getvalue('35/1/' .. i)
if (SP < 85) then
message = 'Alert: ' .. '35/1/' .. i '<br>'
end
end