How can I add a check and not send an auto-reply to certain comments if the user fills in a custom field?

How can I add a check and not send an auto-reply to certain comments if the user fills in a custom field?