Advertisement
Guest User

Untitled

a guest
Feb 7th, 2016
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. // Decide if id is Odd or even and do
  2. if($contact_id % 2){
  3. // If odd add this tag
  4. $contact = array(
  5. "email" => $contact_email,
  6. 'tags' => 'hr-split-a',
  7. );
  8. $contact_sync = $ac->api("contact/sync", $contact); // sync with AC
  9. }else{
  10. // If even add this tag
  11. $contact = array(
  12. "email" => $contact_email,
  13. 'tags' => 'hr-split-b',
  14. );
  15. $contact_sync = $ac->api("contact/sync", $contact); // sync with AC
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement