Uncaught SyntaxError: Unexpected identifier

Thank you so much @thomas_pronk! That is extremely helpful.

I know this is probably a dumb question, but before I make a huge mess on my system should I edit the dlgs.py file on my computer to somehow set “None” to be re-interpreted as “undefined” when translating to JS in Builder? I am referencing the link below from the crib sheet?

If not, how should I proceed? I use the terminology “[something] is not None” quite a bit for the start condition in my experiment to initialize events based on someone’s responses. Would placing a code component at the beginning of each routine with the following code and then manually editing the JS code to say “undefined” rather than “None” fix the problem? And if so, what should I put in builder for the start condition?

        if slider_rating.status == NOT_STARTED and slider.getRating() is not None:
            # keep track of start time/frame for later
            slider_rating.frameNStart = frameN  # exact frame index
            slider_rating.tStart = t  # local t and not account for scr refresh
            slider_rating.tStartRefresh = tThisFlipGlobal  # on global time
            win.timeOnFlip(slider_rating, 'tStartRefresh')  # time at next scr refresh
            slider_rating.setAutoDraw(True)
        if slider_rating.status == STARTED:  # only update if drawing
            slider_rating.setText(int(slider.getRating()), log=False)

Again, I’m very sorry for all of the questions. I’m just trying to get started and am so grateful for all of your help!!