How to make float limits

Hello all,

I need to know how to implement a limit to a float variable. I’m working on a health value and i need there to be a limit to how much my characters health can go.

How do i do this?