Problem:
A conditional output test which checks the value of a string field can only compare the entire string, using equals, not equals, or greater/less than.
How to check if the value *contains* a string?
Solution:
You would need to register a custom function or shortcode for such a test. An example is given in the reply below: https://toolset.com/forums/topic/comparing-a-portion-of-a-string-in-conditional-output/#post-1085588
Relevant Documentation:
https://toolset.com/documentation/user-guides/conditional-html-output-in-views/using-shortcodes-in-conditions/#checking-custom-shortcodes
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 |
---|---|---|---|---|---|---|
- | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | - |
- | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | - |
Supporter timezone: Europe/London (GMT+01:00)
This topic contains 1 reply, has 2 voices.
Last updated by Nigel 5 years, 9 months ago.
Assisted by: Nigel.