If statement help needed

I want to formulate the “if” code where : when the second question is ‘yes’, the total value of the group will be ‘0’ ,other wise it should give the actual sum.

Hi @aadi123,

I think this should work:

if(${chc42}=‘yes’, 0, {chc4total})

Best,

1 Like

thanks. It worked. had to make small change.: if(${chc42}=‘yes’,0, (${chc4total}))

2 Likes