what is the error in the below syntax, this creates sawtooth error #132

Begin Unverified Perl

if (GETVALUE("A4") < 15) {
SETVALUE("A4Grp", 1);

}
else if (GETVALUE("A4")>=15 && GETVALUE("A4")< 19) {
SETVALUE("A4Grp", 2);
}

End Unverified


I have written this code in pre-skip logic of A4Grp, where A4Grp is select type question contains around 8 options.

If I use only the first if condition it didnt create any error but it would set any values in A4Grp, means that SetValue function doesnt work properly.

Resolved
14 replies