learn-gdscript icon indicating copy to clipboard operation
learn-gdscript copied to clipboard

13. conditions / 13.2. limiting health : "==" or "=" ?

Open drakeredwind01 opened this issue 5 months ago • 1 comments

Issue description: in 13. conditions it shows:

Image

but in the lesson

if health > 80:
   health == 80

was not correct

in 13.2. limiting health it instead says to

Image

drakeredwind01 avatar Jul 22 '25 06:07 drakeredwind01

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.

Lucas-Code27 avatar Jul 22 '25 07:07 Lucas-Code27