~(solved)Wave Pattern~ (Only Single Sided Snake Trail!!!!!)

NI$HANT:
But you won't havr said this if it was for a switch case statement you see this is what they are made for although what you say is correct and implicable but aattimes when you have to implement fast functions that work flawlessly you don't have the time to think about the for loops off course these cascades of if conditions can be later on converted into switch or for loop things but the time called for focusing on some other part of the system also these if conditions play no role in creation of the needed Animation

I'm sorry to contradict you, but that is completely wrong in every respect. The way to develop flawless code fast is to use the most appropriate control constructs in the first place, don't introduce duplicate code in the first place and don't use error-prone bug-encouraging approaches like copy/paste. If you "don't have time" to do it right because you are "focusing on some other part of the system" then you certainly don't have time to waste on a slower, more error-prone approach. Doing it right produces shorter, simpler code which takes less time to write and test and fix.