Maybe the above is something like what you want and what Roberto means by needing a different variable for each swing point? You will need to check that sph1, sph2, sph3, spl1,spl2 and spl3 etc have a different value than zero before you use them in a condition.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.