Conditional statement for PINS