Arduino If Statement With Two Conditions Index