You can use elseif to chain if statements, and the outputs merge.
In theory you should then be able to use "!pragma useVerticalIf on" to make it more vertical, but it generates a strange side arrow, which must be a bug.
Alternatively you can use a slightly clunky goto beta feature:
Hope this provides some ideas.