Invalid calculate for the bind attached to "${cal2}" : Couldn't understand the expression starting at this point: ...3${Q1c_1a}͎≥'10' and /da... in expression if( ${Q1c_1a} ≥ '10' and ${Q1c_2a} ≥ '10' and ${Q1c_3a} ≥ '10', and ${Q1c_4a} ≥ '10' an

Invalid calculate for the bind attached to “${cal2}” : Couldn’t understand the expression starting at this point: …3${Q1c_1a}͎≥’10’ and /da… in expression if( ${Q1c_1a} ≥ ‘10’ and ${Q1c_2a} ≥ ‘10’ and ${Q1c_3a} ≥ ‘10’, and ${Q1c_4a} ≥ ‘10’ and ${Q1c_5a} ≥ ‘10’ and ${Q1c_6a} ≥ ‘10’, and ${Q1c_7a} ≥ ‘10’ and ${Q1c_8a} ≥ ‘10’ and ${Q1c_9a} ≥ '10’1,0)

Hi @avance_surveys,

XLSForms doesn’t use operator as greater than or equal to it uses >=
that can be seen in here: Calculate Question Type — KoboToolbox documentation

Can you check if changing the operator works?

1 Like

Invalid calculate for the bind attached to “${cal2}” : Bad node: org.javarosa.xpath.parser.ast.ASTNodeAbstractExpr@76b0bfab in expression if( ${Q1c_1a} >= ‘10’ and ${Q1c_2a} >= ‘10’ and ${Q1c_3a} >= ‘10’, and ${Q1c_4a} >= ‘10’ and ${Q1c_5a} >= ‘10’ and ${Q1c_6a} >= ‘10’, and ${Q1c_7a} >= ‘10’ and ${Q1c_8a} >= ‘10’ and ${Q1c_9a} >= '10’1,0)

It not works

@avance_surveys,

Can you share the screenshot of the error?
Can you validate your form in here: ODK - XLSForm Online v2.x

1 Like