Apologies. I messed up the formatting in my example... not that it's worth two posts, mind you. :)
if v == 'value1'
then do_something()
elseif v == 'value2'
then do_something_else()
goto whatever
elseif v == 'value3
then do_another_thing()
else
::whatever::
do_whatever()
end