Title: Conditional logic in e-mail
Last modified: July 7, 2020

---

# Conditional logic in e-mail

 *  Resolved [aandagtreclame](https://wordpress.org/support/users/aandagtreclame/)
 * (@aandagtreclame)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/conditional-logic-in-e-mail/)
 * Hi,
 * I have tried to apply the conditional logic in the e-mail that is being sent,
   but this is unfortunately not working for me.
 * I have these options:
 *     ```
       show [group-alarmopvolging-b] if [alarmopvolging] equals "Personenalarmering met minimaal 2 sleuteladressen i.c.m. Oproepbare Zorg van Vérian. Dit is alleen mogelijk als u geen zorg(indicatie) heeft van een andere zorgorganisatie."
       show [group-alarmopvolging-c] if [alarmopvolging] equals "Personenalarmering met minimaal 2 sleuteladressen i.c.m. Oproepbare Zorg van een andere zorgorganisatie. Zij dienen 24 uur bereikbaar te zijn." 
       ```
   
 * And the following in my e-mail:
 *     ```
       [group-alarmopvolging-b]
       Test -B
       [/group]
   
       [group-alarmopvolging-c]
       Test -C
       [/group]
       ```
   
 * And the e-mail displays exactly the same:
 *     ```
       [group-alarmopvolging-b]
       Test -B
       [/group]
   
       [group-alarmopvolging-c]
       Test -C
       [/group]
       ```
   
 * So both the tags and the value/content within the groups are visible, no matter
   which option is selected.
 * Am I missing something here?

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

 *  Thread Starter [aandagtreclame](https://wordpress.org/support/users/aandagtreclame/)
 * (@aandagtreclame)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/conditional-logic-in-e-mail/#post-13089657)
 * Note: the conditional logic works good on the front-end.
 *  Plugin Author [Jules Colle](https://wordpress.org/support/users/jules-colle/)
 * (@jules-colle)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/conditional-logic-in-e-mail/#post-13089660)
 * in the email, if you open a group like this `[group-alarmopvolging-c]`, you should
   close it like this `[/group-alarmopvolging-c]`
 *  Thread Starter [aandagtreclame](https://wordpress.org/support/users/aandagtreclame/)
 * (@aandagtreclame)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/conditional-logic-in-e-mail/#post-13089885)
 * Oh wow, how have I missed that in the tutorial. Thank you!
 *  Plugin Author [Jules Colle](https://wordpress.org/support/users/jules-colle/)
 * (@jules-colle)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/conditional-logic-in-e-mail/#post-13090750)
 * 👍

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

The topic ‘Conditional logic in e-mail’ is closed to new replies.

 * ![](https://ps.w.org/cf7-conditional-fields/assets/icon-256x256.png?rev=2072595)
 * [Conditional Fields for Contact Form 7](https://wordpress.org/plugins/cf7-conditional-fields/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cf7-conditional-fields/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cf7-conditional-fields/)
 * [Active Topics](https://wordpress.org/support/plugin/cf7-conditional-fields/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cf7-conditional-fields/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cf7-conditional-fields/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Jules Colle](https://wordpress.org/support/users/jules-colle/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/conditional-logic-in-e-mail/#post-13090750)
 * Status: resolved