Function MID in URScript

Hi,

I trying to do a URScript, and i have to use the function “MID”, at most of the programming languages there is function like that, but in Urscript im not finding. Anyone knows how can i find a function like this in URScript? Thank you.

Best regards.

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: