Hello @elvin
I don’t see where your problem could be
if the checkbox is equal to true, you create the contact in Brevo either with :
→ Api Double Op-tin https://developers.brevo.com/reference/createdoicontact
→ or Api create contact + automation (sending a double opt-in email) https://developers.brevo.com/reference/createcontact
Best regards