Right now i currently have a destacking program picking up small sheets of plastic and stacking them elsewhere. The stacks start off really high. The problem we are running into is that when the stack gets low the robot is still moving extremely slow to do the pick up. I have a laser sensor giving me a number 0 through 10 telling me how close the robot is to the part. I want to have the robot move down quickly until its close to the part then slow down. I was thinking of using an IF statement that looks similar to this IF analog in  <6.5 and analog in  >2.5 (robot slows down) I'm not sure if I should use a script code here or something else. Any help would be greatly appreciated.