learn-gdscript
learn-gdscript copied to clipboard
13. conditions / 13.2. limiting health : "==" or "=" ?
Issue description: in 13. conditions it shows:
but in the lesson
if health > 80:
health == 80
was not correct
in 13.2. limiting health it instead says to
This is normal. == is to check if a value equals another value and = is for setting a value so "==" in that situation would do nothing and "=" would work to limit health.