if ($existing_value eq "option1") then { $html .= qq| |; } elsif ($existing_value eq "option2") then { $html .= qq| |; }