If OR condition tracking

Hi
How about using switch() instead of if?
RV - mineirin