Formula related to PNG images

Example: I would like to see a png image look between 40 and 75 for a heartbeat, and I would like another png image to look between 75 and 120, and another png image to be visible for 120 and above, but here’s a formula for that.

Use opacity formula

Image 1 — Low (40–74 bpm)

({shr} >= 40) and ({shr} < 75) and 100 or 0

Image 2 — Medium (75–119 bpm)

({shr} >= 75) and ({shr} < 120) and 100 or 0

Image 3 — High (120+ bpm)

({shr} >= 120) and 100 or 0

Thank you Thank you, it worked.