I have a list in SharePoint with a field where I have two checkboxes, as below:

And I have a variable called; "varMode", where it depends when the user creates a new form it is activated as "New" which will be activated a new form...
Like this Image:

So, what I need is when the "New" variable is activated, the checkbox will be activated and will save the text in it, I tried to put the code in the image above, but it is not activated and I would like some help with how to activate it and save the text.
The code:
If(
varMode = "New";
CheckboxCustosEdit_2.Text in ThisItem.CustosEstimadosOpcao.Value&&true;
CheckboxCustosEdit_2.Text in ThisItem.CustosEstimadosOpcao.Value
)
And the code on "Update" in the card:
ForAll(
Split(
Concatenate(
If(
CheckboxCustosEdit_2.Value;
CheckboxCustosEdit_2.Text & ",";
""
);
If(
CheckBoxEditNo_7.Value;
CheckBoxEditNo_7.Text & ",";
""
)
);
","
);
{Value: Result}
)
Thank's for your time! : D