If else if case statements

It is just that way it (maybe) helps you see what is going on, but @Steve-Mcl way is neater and more compact.