In Professional Authoring, use the Check Script Code functionality to check for syntax errors in your script code. A check is also performed automatically when you launch the survey in test or production mode, but using this functionality gives you a faster way of checking the syntax because you do not have to generate the database and interview files.
Figure 1 - Check Script Code option
Typical syntax errors that may be found using the script checker are referencing undeclared variables and functions, brackets that do not match - [ ], { } or ( ) - and similar.
The errors found will be listed at the bottom of the screen, and by clicking each error you can open the script node, question or condition containing the error.
Figure 2 - Where errors are located