Можно так сделать:
if s=="" and alarm == true and err == false then
S = S.."Нет в списке аварий "
end