28.11.2017, 14:28
It is the same as this code, just much shorter
Code:
if alarms['co_alarm_state'] == 'ok' then
co_alarm_ok = true
else
co_alarm_ok = false
end