Link rotate of object to texture displayed?

I have an instanced Material which has a parameter called switcher which is a texture.

I have a variable which is a Texture 2D Array with 5 elements, each element is a texture named 00.png, 01.png …05.png

I would like the x rotate of an object to dictate which of these textures is shown on the object.
X rot = 0 display texture 00.png
X rot = 1 display texture 01.png
X rot = 2 display texture 02.png


I’ve setup my blueprints to “Create Dynamic Material Instance” and “Set Texture Parameter Value” but I’m now at a loss of how to connect the rotate value to choose the correct element of the array and then feed this back into which texture to display?