Skip Navigation

[Resolved] Condition error

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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 1 reply, has 2 voices.

Last updated by Waqar 2 months, 1 week ago.

Assisted by: Waqar.

Author
Posts
#2684127

Can you tell me what's wrong with this condition?
NOT ( empty( '[wpv-post-field name="start-date" ]')) AND empty( '[wpv-post-field name="end-date" ]')

I'm getting a message that it's incomplete. I'm trying to check for one field that is not empty and another that is empty.

#2684186

Waqar
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

The condition in this case will need to have the main wrapping opening and closing brackets too.

For example:


 (  NOT ( empty( '[wpv-post-field name="start-date" ]') )  AND empty( '[wpv-post-field name="end-date" ]') ) 

Note: For complex conditions, even if the conditional block's condition preview shows the message 'Incomplete condition', the condition should still work.

I hope this helps and please let me know if you need further assistance.

regards,
Waqar

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.