Removing the custom content when the merge tag is empty

If you added a Custom Content field to your View and its content depends on a Merge Tag (relative to an entry's field), you probably would like to not show anything in case that entry's field is empty.

To enable this logic you would need to adapt and paste the following code into your theme's functions.php file ( see how):