Home › Forums › General Issues › True/False: false output is empty not zero? › Reply To: True/False: false output is empty not zero?
Thanks,
== doesn’t change a thing.
I’ve got no fallback. I want to run the script when the true/false is selected. When it’s unselected I want no scripting.
Checkbox checked + if (omd_table_filters === true) => WORKS
Checkbox unchecked + if (omd_table_filters === true) => breaks script. I just expect that the code inside the statement gets ignored. Instead it breaks.
Also, when I echo the true/false when it’s set to ‘off’ the echo is empty. Is this normal?
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.