I have tried continue and see what happends after while... i see there is another problem at 9:22 min ... I put there your expression
if(YSplinePosition = 0,3,
if(YSplinePosition = 1,1,2))
and it shows me
Parse error. Expected ')' or ',' in argument list at line 1:
if(YSplinePosition = 0,3,
^
it seems that you used old version and through period you updated your software and it doesnt work any more this tutorial because you changed it so much... But is ok i will try use your example file and use that script that works at least.