Is a while loop embedded in if/else if legal?

get into a more complicated but better and neater array set up.

Using arrays will make your code neater, better, AND less complicated, not more.