This is my first question here, so apologies if I broke a rule I may not be aware of. I also searched the database but I couldn't seem to find what I am looking for.
Here is some context to my question:
I am currently working on a Twine game in Harlowe that will, among other things, have an rpg-like character development system. Among other things, at a certain point in the game, you level up, meaning: your max health changes from 10 to 20.
I also have an inventory system. In the inventory menu where you also can monitor your stats, you will have the possibility of increasing your health with a potion.
Is there any way in Twine (Harlowe) I can define that the variable health should not exceed a certain value (say: 10)? Imagine every portion of potion increases your health by 5 points, and your health is at 8 – how can I define that when you take the potion it should only increase your variable health to 10 (and not to 13, based solely on arithmetics)?
I hope my question is not too stupid and I am not overlooking anything obvious. Thanks in advance for your kind reply.