AnsweredAssumed Answered

calculate values in an if statement in survey 123

Question asked by granthay on Mar 13, 2019
Latest reply on Mar 14, 2019 by granthay

I'm trying to write a simple if statement in a survey123 form that will perform a calculation if the condition is true and perform a different calculation if the condition is false. It places a string of junk in the calculated field, instead of calculated values, if I remove the calculations the if statement works just fine. Can anyone help me on this?

 

if(${Static_Water_Level}<(${Installed_Depth} - ${Screen_Height}), ${Installed_Depth} - (${Screen_Height}div2), ${Static_Water_Level} + ((${Installed_Depth} -${Static_Water_Level})div2))

Outcomes