## Progress bar in a block

 Author Message Rebecca17  Associate Member         Group: Forum Members Posts: 7, Visits: 24 How can I implement, that the width of a progress bar depends on the number (1-6) of the current item?My idea is the following, but it doesn't work:/ shape = rectangle/ color = grey/ position = (50%, 10%)/ size = (0%, 5%)/ width = 80% * (text.WS.currentitemnumber/25)/ trials = [1-6 = WS]/ stimulusframes = [1 = WSF]/ items = WS/ select = sequence (1,2,3,4,5,6)/ position = (50%, 30%) /1 = "Wort1"/2 = "Wort2"/3 = "Wort3"/4 = "Wort4" /5 = "Wort5" /6 = "Wort6" Dave  Supreme Being         Group: Administrators Posts: 9.6K, Visits: 44K +xRebecca17 - Wednesday, January 30, 2019How can I implement, that the width of a progress bar depends on the number (1-6) of the current item?My idea is the following, but it doesn't work:/ shape = rectangle/ color = grey/ position = (50%, 10%)/ size = (0%, 5%)/ width = 80% * (text.WS.currentitemnumber/25)/ trials = [1-6 = WS]/ stimulusframes = [1 = WSF]/ items = WS/ select = sequence (1,2,3,4,5,6)/ position = (50%, 30%) /1 = "Wort1"/2 = "Wort2"/3 = "Wort3"/4 = "Wort4" /5 = "Wort5" /6 = "Wort6"/ shape = rectangle/ color = grey/ position = (50%, 10%)/ size = (0%, 5%)/ erase = false/ trials = [1-6 = WS]/ ontrialbegin = [shape.progressbar.width = 80% * (text.WS.nextindex/25);]/ stimulusframes = [1 = WS, progressbar]/ validresponse = (57)/ items = WS/ select = sequence (1,2,3,4,5,6)/ position = (50%, 30%)/1 = "Wort1"/2 = "Wort2"/3 = "Wort3"/4 = "Wort4"/5 = "Wort5"/6 = "Wort6"