Calculate error message

FormLogicError: Could not evaluate: if( /model/instance[1]/aFDvXJdsGLzBbchpKocZXs/group_zs3eo42/D_3b_What_is_the_hea_t_level_of_education = ‘primary_complete’, 1, if( /model/instance[1]/aFDvXJdsGLzBbchpKocZXs/group_zs3eo42/D_3b_What_is_the_hea_t_level_of_education =‘secondary_incomplete’, 1, if( /model/instance[1]/aFDvXJdsGLzBbchpKocZXs/group_zs3eo42/D_3b_What_is_the_hea_t_level_of_education = ‘secondary_complete’, 2, if( /model/instance[1]/aFDvXJdsGLzBbchpKocZXs/group_zs3eo42/D_3b_What_is_the_hea_t_level_of_education = ‘university_poly_incomplete’, 3,if( /model/instance[1]/aFDvXJdsGLzBbchpKocZXs/group_zs3eo42/D_3b_What_is_the_hea_t_level_of_education = ‘university_poly_complete’, 4,if( /model/instance[1]/aFDvXJdsGLzBbchpKocZXs/group_zs3eo42/D_3b_What_is_the_hea_t_level_of_education = ‘post_university_incomplete’, 3, if( /model/instance[1]/aFDvXJdsGLzBbchpKocZXs/group_zs3eo42/D_3b_What_is_the_hea_t_level_of_education = ‘post_university_complete’, 3,if( /model/instance[1]/aFDvXJdsGLzBbchpKocZXs/group_zs3eo42/D_3b_What_is_the_hea_t_level_of_education = ‘no_school_illiterate_none’, 0,0))))))))), message: “)” outside function!{“stack”:,“cur”:{“t”:“root”,“tokens”:[{“t”:“num”,“str”:“0”,“v”:0}]}}

@uchemaryc, have you validated your XLSForm through this online validator to identify and fix your syntax issues?

yes thanks