I haven't coded on smilebasic for a while but what i remember is that splink x,y only work if x<y