Toad World® Forums

In Editor: Is there any way to jump to the next else?


#1

In Editor: Is there any way to jump to the next else of a give if statement?

The collapse code collapses all the IF code.
Is there any way to collapse only the inside code to get something like

IF xpto=1 then
(…)
ELSIF xcpt=1 then
(…)
ELSE
(…)
END IF;

?

or to jump to the next ELSE of a given IF?
Thanks

Filipe Silva


#2

Hi Filipe,

A workaround is to use Outline. Double-clicking a node (ELSIF, ELSE) will take you to the appropriate part of code. Currently collapsing works based on matching END to IF, LOOP, BEGIN etc. We will think how to make it work for ELSIF and ELSE, it should not be too hard.

Regards,
Roman