function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Counting Active Contacts

I have the following Trigger created which counts contacts that have Do not Email as true and Undeliverable as false.

User-added image

But I want to change it so the count actually looks at Do not Email is false and Undeliverable is false.  How can I alter the above trigger to look at both check box being false, and only counting contacts that do not have them checked off?

Thanks for your help in advance
Best Answer chosen by S_Batman
Just update your If clause at the end to
if(!con.Do_not_email__c && !con.Undeliverable__c)