I have written this formula but getting error:
Incorrect number of parameters for function 'IF()'. Expected 3, received 4
IF
(
AND (Account.Name <> null,
Account.Primary_Campaign__c = null),
OR (AND ( Account.Name <> null,
Account.Lead_Source__c=null )),
true,
false
)