I want to check a variable value for an upcoming game im making. In this case the player has a health of five. I want it to be the case that when the players health is equal to zero, the player dies.
How do I check the value of a variable? Thank you!