FormLogicError: Could not evaluate: if(( /model/instance[1]/data/Q9 =1), ‘0’, if(( /model/instance[1]/data/Q9 =2), ‘5’, and /model/instance[1]/data/Q9 =3),‘10’)), message: Weird args (should be separated by commas):[{“t”:“bool”,“v”:false},",",{“t”:“str”,“quote”:"’",“v”:“5”},{“t”:“bool”,“v”:false}]
this is the calculation statement below which I wrote:
if((${Q9}=1), ‘0’, if((${Q9}=2), ‘5’, and ${Q9}=3),‘10’))
Hello,
Your syntax for the cascading if is wrong. It must be
if(condition1, true-action1,
if(condition2, true-action2,
if(condition3, true-action3, else3).
(An “and” or an “or” can only be part of a condition.)