Display just one index of an array in a text widget?

Hi folks,

If i want to use a text widget to display the values of an XY pad, i can put in it’s “value” field:

xy = @{xy_1}

But what if i only want to display either the X or the Y, how do i choose just one index of the array to display?

Thanks!

Using some javascript:

#{ @{xy_1}[0] }