How to call ACF field in functions?

You can use && for AND or could us || for OR so the if statement would be if (is_singular(‘post-1’) || is_singular(‘post-2’)){};