Skip loop of group

Hiii,

I am preparing a form where drop down are 1,2,3,4
And if I select 1 then rest can skip only group 1 can be display, if selected 2 then display 1&2 groups like wise if selected 4 then all 1 to 4 groups displayed.

Seeking help.