I have a code which needs a variable compare string
array( 'key' => 'rob_value', 'value' => $rob, 'compare' => '=' )
=>'=' needs to be
'=' to get values according a variable data from search form, but sometimes the value is null (empty) and the compare line needs to change to compare
I have tested changing the code manually and it works perfectly. Now I want to do the code change according the values on search form.