Hello,
I have a save button that is used for when the Form Mode is both in New or Edit.

I have code set on this to run a workflow after the item is saved to SharePoint. However I only need the workflow to run if the Form Mode is 'New' and not if Form Mode is 'Edit'.
I have tried using the below code to get this working however I am seeing an error in the app:

I can see that another parentheses is required but not sure where to put it - I'm not even sure if I've got the below right?
Would appreciate some help with this one.
SubmitForm(BuildingForm);
If(
IsEmpty(Errors(DocData)),
// ON SUCCESS
Notify(
"Success: Building item Saved/Updated",
NotificationType.Success
)
);
Set(varBuildingName, BuildingDD.Selected.Value);
UpdateContext({varCreateTopSubtop: true});
If(BuildingForm.Mode = FormMode.New; 'BSC-PowerApps-AutoCreateTopicsSubtopics'.Run(varBuildingName;)