08.08.2022, 08:12
You can check like this:
Or a more strict check:
Code:
if knx_cfg['3'] and knx_cfg['3'].dim_ then
log( knx_cfg[3].dim_)
end
Or a more strict check:
Code:
if type(knx_cfg['3']) == 'table' and knx_cfg['3'].dim_ then
log( knx_cfg[3].dim_)
end