Skip Navigation

[Resolved] Conditional output

This support ticket is created 6 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 1 reply, has 1 voice.

Last updated by JosV9233 6 years, 10 months ago.

Assisted by: Shane.

Author
Posts
#602971

I am trying to show a header when at least one of its 'children' exists. I am trying to do that with the following statement:

[wpv-conditional if="( $(wpcf-abonnementsoort) ne '' ) AND ( $(wpcf-ingangsdatum-abo) ne '' ) AND  $(wpcf-einddatum-abo) ne '' ) AND ( $(wpcf-nieuwe-aansluiting-of-verlenging) ne '' ) AND ( $(wpcf-vergoeding) ne '' )"]<h4>Abonnement</h4><hr>[/wpv-conditional]

However if one of the items is empty (non-existant) the header will not show.
Where do I go wrong?

Jos

#603047

I found another way to proceed. In the example above e I understood I had to use the OR, but that did not solve that particular problem. I found a workaround.