local tv = get_trigger_variable(1) if tv == nil then return end local v = tv.integer if v == nil then return end if v < 0 then v = 0 end if v > 200000 then v = 200000 end lux_target = v