You're also better off using RETURN rather than HALT in most situations, though ELSEIF is a better option, imo.
There are a variety of ways you can avoid the need for GOTO and even avoid many ELSEIF lines. Sometimes, just using variables creatively can save you a lot of lines of code. Or, for only a couple possible inputs, $iif() might be a good option. It all depends on exactly what you're trying to do. A real example is more likely to get you good advice than a fake example.