Skip Navigation

[Resolved] Add multi-conditional rules to Views

This support ticket is created 4 years, 2 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 – 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: Africa/Casablanca (GMT+01:00)

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Jamal 4 years, 2 months ago.

Assisted by: Jamal.

Author
Posts
#1886673
Screenshot 2020-12-25 at 7.33.00 PM.png

Dear Sir/Madam,

I have a Views in block mode, how can I add multi-conditional rules to it? I want to show a button if user not yet logged in and competition deadline not yet ended. Could you please advise how I can do it?

Best regards,

Kelvin

#1887333

Hello Kelvin and thank you for contacting the Toolset support.

I believe that you should use the operator "AND" instead of "&&" in your conition. Read more about conditions in Toolset Views in the following articles:
- https://toolset.com/documentation/legacy-features/views-plugin/conditional-html-output-in-views/
- https://toolset.com/documentation/legacy-features/views-plugin/nesting-and-combining-conditions/

As an admin user, you can also debug the conditions to see what's going on https://toolset.com/documentation/legacy-features/views-plugin/debugging-views-output/

And you can also add custom code(shortcodes, or functions) to your conditions https://toolset.com/course-lesson/using-toolset-conditional-block/#checking-for-shortcodes-values

I hope this helps. Let me know if you have any questions.