There are a few ways you can do this include if-else statements or switch-case statements to determine which value to choose to compare based on the current value of “i” in the loop. However, a more elegant way to do this in your case is simply dividing the value of “i” to map it to the correct index of your “ind” array. The following code should give you the correct value at any point of the loop:
ind(ceil(i) / 64)