Home › Forums › Front-end Issues › The logic behind conditional logic :) › Reply To: The logic behind conditional logic :)
I think it has to do with the logic
if field 1 does not equal XXX AND field 2 == 1 OR field 1 does not equal YYY AND field 2 == 1
if field 1 equals YYY then the first statement is true. If field 1 equals XXX then statement 2 is true. The field will always be shown.
if yo want this field to be hidden for any of the possible values in field 1 then what you need is
if field 1 != XXX AND field 1 != YYY AND field 2 == 1
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
Are you building WordPress sites with ACF and @BeaverBuilder, and wanted to use your ACF Blocks in both the block editor and Beaver Builder?— Advanced Custom Fields (@wp_acf) May 10, 2023
The BB team recently added support for using ACF Blocks in Beaver Builder. Check it out 👇https://t.co/UalEIa5aQi
© 2023 Advanced Custom Fields.