if (!$status->{PC} && !$status->{WI} && !$status->{EL} && !$status->{TS} && !$status->{SS}) { # no op } elsif ($status->{PC} && $status->{WI} && !$status->{EL}) { $html->enable('msg1'); } elsif (!$status->{TS} && !$status->{SS}) { $html->enable('msg2'); } elsif ($status->{TS} || $status->{SS}) { $html->enable('msg3'); }