When I'm coding up my study, what should I do when I get an error message? How do I know what needs fixing?
FAQ #4 - Syntax Error Message
|
10-26-2020, 01:13 PM
If you get an error message about syntax, there are two things you should do. (1) Highlight all text in your trial templates and press "Tab" on your keyboard. This will indent all code in a readable way, so that you can look through it and see if there are any missing parentheses, etc. Do the same thing with your procedure code.
If you can't find an issue by looking at your code, you should (2) verify that your code is valid JSON. To do this, copy and paste your code into an online JSON checker. Be sure to remove any lines with comments (lines that start with double slashes //). These checkers will point to any syntax errors. |
« Next Oldest | Next Newest »
|
Users browsing this thread: 1 Guest(s)