[Resolved] Conditional display based on two values in Blocks
This support ticket is created 4 years, 9 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.
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.
I'm currently trying to convert a product-archive that has benn created using shortcodes to the new toolset blocks.
I have a condition that is based on two values:
[wpv-conditional if="( '[types field='schutzart-ip' option='8'][/types]' eq 'IP66' ) AND ( '[types field='schutzart-ip' option='9'][/types]' eq 'IP67' )" debug="false" ]
<i class="et-check">[wpml-string context='wpv-views']staubdicht, gegen starkes Strahlwasser und Tauchwasser geschützt[/wpml-string]
[/wpv-conditional}!}
If product has the the values IP66 and IP67, show "text"
I can not get this to work using toolset blocks.
I have tried to create a conditional group and I have tried nested conditions.
Sorry, I'm having trouble getting this to work with classic Views on my own site, I need to keep testing, but I have run out of road today, so I will update you in the morning.
I was able to confirm on my test site that when used inside a conditional statement you need to check against the value saved in the database and not the display value, so ip66 for example and not IP66.