Restlist Function Example

Details

Action

A MathScript Function that returns the list of elements after the first n elements of a list.

If l1 is the result of a textlist command that read the contents of a text field named "coord", then it is necessary to use the first command to get the number 1 element from the list. The complete script to get the coordinates is

let l1 value textlist("coord");

let xvalue first(l1);

let yvalue first(restlist(l1,1));