Change material used based on index

I am making my own board game referencing this [youtube tutorial][2] but I cant feed the select object conditional to the set material. What should I do? Im totally new to this

You have to make the select node FROM the set material node, then you’ll get the correct type.