Need some help with boolean

so i’ve successfully made a wallpaper and i thought i was finally getting the gist of things. i made komponents and globals where the battery percent would show up in a certain position when the phone reaches that specific percent. but it’s not working. this is the formula i used: “$if(bi(level) <61, gv(batt))$”. the formula doesnt seem to work since it’s showing up on the last two hearts. i even tried: “$if(bi(level) >40 AND <61, gv(batt))$” it doesn’t work. need some help, thanks!

fixed this with some help from reddit. basically made an else global (notbatt) and used this formula: “$if(bi(level) < 61, >40, gv(batt), gv(notbatt))$”

also, this was the image i intended to use in my problem earlier. posted it just in case someone will need it