Script not working

0

Hi,

 

Could you please tell me what’s wrong with the ff. script:

 

/* Begin scripting for different age range criteria */

%%initialpass = ‘pass’; /* Starting value for %%initialpass variable */

if (%%q76 == ‘No’){ /* If under 70 */
if (%%q82 != ‘I am certain I have this’ && %%q83 != ‘I am certain I have this’){
%%initialpass = ‘fail’;
};
if ((%%q82 == ‘I am certain I have this’ && %%q83 != ‘I am certain I have this’) && (%%q96 == ‘Yes’ || %%q105 == ‘Yes’)){
%%initialpass = ‘fail’;
};
if ((%%q82 != ‘I am certain I have this’ && %%q83 == ‘I am certain I have this’) && (%%q97 == ‘Yes’ || %%q107 == ‘Yes’)){
%%initialpass = ‘fail’;
};
if (%%q82 == ‘I am certain I have this’ && %%q83 == ‘I am certain I have this’){
if ((%%q96 == ‘Yes’ || %%q105 == ‘Yes’) && (%%q97 == ‘Yes’ || %%q107 == ‘Yes’))
%%initialpass = ‘fail’;
};
};
}

if (%%q76 == ‘Yes’){ /* If over 70 */
if ((%%q82 != ‘I am certain I have this’ && %%q83 == ‘I am certain I have this’) && (%%q97 == ‘Yes’ || %%q107 == ‘Yes’)){
%%initialpass = ‘fail’;
};
if (%%q82 == ‘I am certain I have this’ && %%q83 == ‘I am certain I have this’){
if ((%%q96 == ‘Yes’ || %%q105 == ‘Yes’) && (%%q97 == ‘Yes’ || %%q107 == ‘Yes’))
%%initialpass = ‘fail’;
};
};
}

/* End scripting for different age range criteria */

if (%%initialpass == ‘fail’ || %%q44 == ‘No’ || %%q45 == ‘No’ || %%q24 == ‘NSW’ || %%q24 == ‘VIC’ || %%q24 == ‘QLD’ || %%q24 == ‘TAS’ || %%q24 == ‘NT’ || %%q24 == ‘WA’ || %%q24 == ‘SA’){

 

What happens is that, after completing the questionnaire, both the “passed” and “failed” messages show up (which usually means there’s just an extra or missing semicolon or bracket).

I need response ASAP please.

Thanks!

Nick Karrasch edited question
    ×

    Login

    Question stats

    • Active
    • Views165 times
    • Answers0 answers
    • Followers1 follower