How to get a value in an array based on the sampled value

maybe what i am asking is not clear.

what i what to do is pass the value of the sampled parameter to an array.
what should i do?
thanks

1 Like