It would be nice if we could have the SWITCH keyword or something that simulates that.
Today the best option is ( as far as I know )
'!pragma useVerticalIf on
if (condition A) then (yes)
elseif (condition B) then (yes)
elseif (condition C) then (yes)
elseif (condition D) then (yes)
here is the diagram.
How could we get rid of the last branch and directly continue from the bottom line?
if I exchange the last "elseif" to "else" ( and I have to remove the "then (yes)") the condition is written on the line
and we lose consistency in my opinion.
the SWITCH is useful when we have an Enumeration and we know exactly the different possible values.
Hope that I am clear.