URL of experiment: Lucy Mckeown / Spatial_localisation · GitLab
Description of the problem:
The position value I assign to my variable in begin experiment [0,0] remain when the routine begins and the conditions file should take over.
If I run the experiment online without defining the variable position (cue_coin_posx), I had the error: unable to convert undefined to a number. See my previous post: Unable to convert undefined to a number
Previously making the columns for x and y position separate did work, along with defining the positions as 0 for x and y in begin experiment however it is not working now.
I receive the error: unable to convert undefined to a number.
I think it may be because I changed the loop structure- the loop in question is trials_1 (routine is cond1_trial) and I have defined the variable in begin experiment within this routine in a code component call random_select_code1.
I have also tried manually (in begin routine) setting the position of my component cue_coin, with cue_coin.setPos[cue_coin_posx, cue_coin_posy] that is using the two x and y co-ordinates listed in my conditions file but it still produces a position consistent with whatever I set the position value as in begin experiment.