Checkboxes value for multiple choices

[ad_1]

Hi again. It seemed like a dumb question, but I can’t figure it out.

Let’s say, I have a checkboxes field (fieldname123) with “1”,”2″ and “3” options. I need to create a condition that works if the user selects “1”. If I write IF(fieldname123==1,…) it works if the user selects option “1” only. But it doesn’t work if he selects, for example, both “1” and “2”. What condition should I write to make the function work if the user selects a certain option, no matter if he selects other ones or not?

Thanks in advance.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer