How to link loop parameter to slider without 'syntax error'

Hi there, this has now been solved in another thread Problems converting manually set sliders to psychoJS and this follow-up question can be disregarded. Thanks!