i'm looking for something closer to what joe s. has so that i can run some code in a loop and have it change if those pins are high or low without having to have a separate if statement for each pin.

thanks again in advance