Function MID in URScript

What is your expected behavior for a MID function? Are you trying to find a midpoint between 2 Waypoints? The middle of 2 numbers? The median of a statistical dataset? You can write and define your own functions as you need using UR script. See my post below for an example of a script that finds the midpoint between 2 Waypoints: