Title: Boolean Examples needed
Last modified: September 22, 2021

---

# Boolean Examples needed

 *  [nielsk61](https://wordpress.org/support/users/nielsk61/)
 * (@nielsk61)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/boolean-examples-needed/)
 * Sounds like just the plugin I need.
    However, where do I find the code from some
   Boolean examples for entering into the Content Visibility field? My specific 
   case is pretty straightforward: all I want is for a Section/Row/Module to show
   if the “Dynamic Content” mechanism of Divi’s Theme Builder finds and fills in
   content from a custom field I defined with Pods. If not, then the Section/Row/
   Module should just be ignored. What do I enter in the Content Visibility field(
   Advanced tab > Visibility)?

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

 *  Thread Starter [nielsk61](https://wordpress.org/support/users/nielsk61/)
 * (@nielsk61)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/boolean-examples-needed/#post-14901218)
 * 1 day and many trials and a tribulation later….
 * This short code seems to work for me (Divi Theme Builder, Pods plugin, and Content
   Visibility plugin):
 *  pods(‘mappost2’, ‘photo3)->exists() !== ”
 * Just enter this into the field <Divi module> > Advanced tab > Visibility > Content
   Visibility
 * NB1: ‘map2post’ is the “name” of the Pod (not it’s label!) created as a custom
   post type (CPT) using the Pods plugin
 * NB2: ‘photo3’ is the name (not label!) of any example field in this CPT which
   in my specific case is a “dynamic content” item for the Image module in the Divi
   Theme Builder template.
 * Result: if ‘photo3’ is populated with an image in the CPT (post) which uses this
   specific Divi Theme Builder template, it will display. If ‘photo3’ is _not_ populated(
   empty), it will _not_ display the usual “empty” image frame.
 * Simple, right? Great plugin!
 *  [technicalx](https://wordpress.org/support/users/technicalx/)
 * (@technicalx)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/boolean-examples-needed/#post-15274945)
 * how about boolean example for enrolled in current Learndash course page?

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

The topic ‘Boolean Examples needed’ is closed to new replies.

 * ![](https://ps.w.org/content-visibility-for-divi-builder/assets/icon-256x256.
   png?rev=1359961)
 * [Content Visibility for Divi Builder](https://wordpress.org/plugins/content-visibility-for-divi-builder/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/content-visibility-for-divi-builder/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/content-visibility-for-divi-builder/)
 * [Active Topics](https://wordpress.org/support/plugin/content-visibility-for-divi-builder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/content-visibility-for-divi-builder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/content-visibility-for-divi-builder/reviews/)

## Tags

 * [boolean](https://wordpress.org/support/topic-tag/boolean/)
 * [divi](https://wordpress.org/support/topic-tag/divi/)

 * 2 replies
 * 2 participants
 * Last reply from: [technicalx](https://wordpress.org/support/users/technicalx/)
 * Last activity: [4 years, 4 months ago](https://wordpress.org/support/topic/boolean-examples-needed/#post-15274945)
 * Status: not resolved