Array Lenght doubt

On my game if I take a iten it apper on my UI Menu on an order but if I dont take the first item and I take the second, it need to be the first item on my order, for this I need to make an array that if I get an item I need to sum 1 on my variable,
Here is my code:

The Lenght of moedasMenu is 10, subidor value is 1 the moedaNumber array works my problem is on moedaMenu that decide the next gameObject that will be enabled

	for (int i = 0; i  < subidor ; i++) 
			{
		
				subidor++;
				moedasMenu*.GetComponent<Image>().sprite = moedaNumber[valorMoeda];*

_ moedasMenu*.GetComponent().enabled = true;*_

* }*

for (int i = 0; i < subidor ; i++)

Since you have subidor value set to 1 ,
you are trying this

  for (int i = 0; i  < 1 ; i++) 
~   0<i<0  ~ Deadblock Condition

what you possibly want is this ,

for (int i = 0; i  < subidor.length ; i++) // Assuming subidor as an array , if its an int ,                    make sure its atleast greater then 1

{
    if(i == 0) continue ; // ignore the 1st element
    //do the other stuff here
     moedasMenu*.GetComponent<Image>().sprite = moedaNumber[valorMoeda];*

moedasMenu*.GetComponent().enabled = true;*

}