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!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.