Quote:

This has to do with the fact that the %a variable isn't evaluated over and over with each if statement


Hence the fact why switch() would be very useful as well, it is designed to do exactly what you are talking about.