Form Logic Error while carrying out Calculations

*Please i get this error below when i try to carry out these calculation.

Please i need help on resolving it.

${calculations}+${calculations_001}+${calculations_002}+${calculations_003}+${calculations_004}+${calculations_005}+${calculations_006}

if(${calculation},<=5,“Covid-19 not Present”,if(${calculation}<=7,“mid covid stage”,if(${calculation}<9,“severe”,“very severe”)))

FormLogicError: Could not evaluate: if( /model/instance[1]/data/calculation ,<=5,“Covid-19 not Present”,if( /model/instance[1]/data/calculation <=7,“mid covid stage”,if( /model/instance[1]/data/calculation <9,“severe”,“very severe”))), message: The expression is not a legal expression. (line: undefined, character: undefined)

Your error is on the comma (,) before <=5. Remove that comma and you should be good to go.

if(${calculation}<=5,“Covid-19 not Present”,if(${calculation}<=7,“mid covid stage”,if(${calculation}<9,“severe”,“very severe”)))

Stephane

2 Likes

Thanks Stephanealoo. It worked.

1 Like