getLast Function

Purpose:

Returns the last value of a numeric array.

Syntax:

getlast(array,value)

getlast(array,base,step)

Comments:

Returns the last value.  When an array is packed with say 2 values,  eg, x1,y1,x2,y2 base and step can be used.  This allows you to average only the y values in the array, not averaging the whole array.

Example:

ii = 1,2,8,13

p getLast(ii,8)

3