if statement has been created

and if statement has been created for if the person is 17 or older and
wants to see a r rated movie