How to change the Health UI according to how much HP the user has?

great, and im guessing the health value will relate to the index of the array.

for instance, health = 0 will result in index [0] from the array being displayed?