I am trying to use the api to get all contacts without an address with locationtype billing. For this I use the contact get api, and do a chained address get call. Is there a way to put a condition on the number of results from the chained call?
This is a non-working example of what I am trying to do.
$result = civicrm_api3('Contact', 'get', array( 'sequential' => 1, 'api.Address.get' => array('location_type_id' => "billing"), 'api.Contact.get.count' => 0, ));