I'm creating a status bar to show the level of the bin reading info from firebase and displaying its level and changing the status bars color depending on the percentage it is full..i will also have to do this fr a load cells weight just wondering is there a more time and space efficient way to do it than i have ... there has to be ...im currently using 100 if else statements and every time it changes a percent the status bar changes surely there is a better way to do this tia