Value ranges to indices categories for graphic override

Hello,

I am trying to colour code a set of distances defined by proximal relationship of elements to an attractor point.
I have the distances mapped according to proximity converted to a range of indices, where 0= nearest and 1= farthest.

What I would like to achieve is mapping according to proximity range classes. Say, everything <7000 = green; 7000-9000= yellow, >9000= red.

Below is the script showing override according to proximity range. Can anyone help map as explained above?

Thanks

You can use a simple If statement to return a color based on distance.

1 Like

That is exactly it. Thank you