control pins independently without delay()

Looking at the mistake you did, you might want to read about this = - Arduino Reference and this http://arduino.cc/en/Reference/If

This is the two you mixed up :slight_smile: