I have 4 switches connected to port b, I am reading in the state of the switches ok but need some help in exicuting code depending wich switches are pressed. At present I am doing 16 if then statements, ( 1 for each of the possible outputs). Is there an easier more efficiant way of doing this?