I am new in coding and I am trying to learn formulas.
For the below formula:
IF
(
AND
(IsInfected__c==TRUE, Is_Patient_Dead__c==TRUE),
Min_Pay__c*0, Max_Pay__c,
IF(
AND(IsInfected__c==TRUE, IsCured__c==TRUE)
,Max_Pay__c,Min_Pay__c))
I get following Error:
Incorrect number of parameters for function 'IF()'. Expected 3, received 4. If I add one more parentheses, it shows me another error ' Syntax error. Extra ')'