I have a feeling I am writing useless code

Depends if the conditions are mutually exclusive. It’s possible OP meant more than one of them at the same time. :stuck_out_tongue: