Life Limit?

I’m going to create a healing spot in my game. And i just wonder:
Can you set a max value of a variable?