if statement to attack