if( function_exists('oxygen_vsb_register_condition') ) { global $oxy_condition_operators; oxygen_vsb_register_condition('Has Banner', array('options'=>array('true', 'false'), 'custom'=>false), array('=='), 'has_banner_callback', 'Banner'); function has_banner_callback($value, $operator) { $banner=get_field('inner_banner'); if( $value == "true" && !empty($banner)) { return true; } else if( $value == "false" && empty($banner) ) { return true; } } }