Every time when I call gotolabel(), I expect it to run directly the waypoint. For example, when I call gotolabel($wptid-1), I want it to repeat the previous waypoint. But in the end, what happens is that it just returns to the selected waypoint and start running from the one below. So, what I have to do is call gotolabel($wptid-2), and sometimes it can fuck up the script, as in very rare cases, it will do what I want.
If this isn't clear enough I can explain again using pictures or w/e