Barra de progreso para cursos online

I would like a help to be able to insert a switch that will assign a value to my progress bar a game type for the videos seen when clicking on finish will assign a value of 25 and the goal of my progress bar is 100 could help me how to do this my switch only writes true or false and does not change or add the value of the corresponding field to the progress bar.

("In short, the member will mark which video they have watched and I have a progress bar to keep track of how many hav


e been viewed")