for the window link tutorial

[ https://www.youtube.com/watch?v=bhICkZ3873A&list=PLlAvqHxFNuHwhl87piHkunOH1VlazcDFi&index=6 ]

everything is smooth expect in making arthimatic formula

if (YSplinePosition=0,3,if(YSplinePosition=1,1,2)

i think it i am making it right but i gives me strange errors any help please ?

Parse error. Expected ')' or ',' in argument list at line 1:

if(YSplinePosition=0,3,

^

[ https://www.youtube.com/watch?v=bhICkZ3873A&list=PLlAvqHxFNuHwhl87piHkunOH1VlazcDFi&index=6 ]

everything is smooth expect in making arthimatic formula

if (YSplinePosition=0,3,if(YSplinePosition=1,1,2)

i think it i am making it right but i gives me strange errors any help please ?

Parse error. Expected ')' or ',' in argument list at line 1:

if(YSplinePosition=0,3,

^