Title: Using an IF statement?
Last modified: June 12, 2018

---

# Using an IF statement?

 *  Resolved [mrmckee](https://wordpress.org/support/users/mrmckee/)
 * (@mrmckee)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/using-an-if-statement/)
 * If I have a check box set up like this:
 * [checkbox mailing-list “Check here to receive email updates”]
 * Is it possible in my corresponding email to specify yes or no depending on whether
   it is clicked?
 * At the moment, it will return either nothing or “Check here to receive email 
   updates” but if it is checked, I would simply like to return yes.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [barnez](https://wordpress.org/support/users/pidengmor/)
 * (@pidengmor)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/using-an-if-statement/#post-10390066)
 * In the Message Body:
 * `[mailing-list] Receive mailing list: Yes`
 * And check: _Exclude lines with blank mail-tags from output_
 *  Thread Starter [mrmckee](https://wordpress.org/support/users/mrmckee/)
 * (@mrmckee)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/using-an-if-statement/#post-10390116)
 * Will that not return the mailing list value then?
 *  [barnez](https://wordpress.org/support/users/pidengmor/)
 * (@pidengmor)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/using-an-if-statement/#post-10390774)
 * Yes, you’re right. My mistake. How about modifying your message in the FORM to:
 * `[checkbox mailing-list “Receive email updates?”]`
 * And in MAIL:
 * `[mailing-list]: Yes`
 *  Thread Starter [mrmckee](https://wordpress.org/support/users/mrmckee/)
 * (@mrmckee)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/using-an-if-statement/#post-10390817)
 * Ah good thinking! Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Using an IF statement?’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [mrmckee](https://wordpress.org/support/users/mrmckee/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/using-an-if-statement/#post-10390817)
 * Status: resolved