Scoring calculation

hi all,
i prepared a form with a scoring calculation for select one and multiple questions, but i have a problem in calculating the results because i got true and false instead of 1 or 2,
the formula was (if((${status}='divorced'),2,0))
can you help me with a formula to calculate the results,

Too many brackets... Try just:

if(${status}='divorced',2,0)

1 Like