Millisecond Forums

'elseif' versus 'else if' in MCQ30 questionnaire

https://forums.millisecond.com/Topic36814.aspx

By AndrewPapale - 1/10/2025

Dave,

I discovered a disturbing behavior in one of my scripts today.  I had an incorrect elseif statement (should be else if, with a space).  The Inquisit compiler did not catch this and the script ran, but the items being stored in the lists and the currenttotal values were incorrect.  Here is the original (MCQ30_original.iqx) and corrected (MCQ30_corrected.iqx) script.  In my opinion, the original script should not have run and instead generated an error.

Thanks,
Andrew