Referenceerror: generate_second_value is not defined

Although I define generate_second_value like this, I am getting referenceerror: generate_second_value is not defined. or first_value is not defined.



How can I solve this?
Thanks,

Hi, what are you trying to do when this error happen?

Where does line_rect_len come from?

Try using print / console.log commands to check your variables.

https://psychopy.org/online/psychoJSCodingDebugging.html