Equal (==) is an error-prone operator in my opinion

Hi,
just for discussion:

I noticed that often in the series, I worked with <= / >= operators, when the instructor is unsing isEqual (==). In my opinion this is a bit tricky. There will be errors if you forgot to clamp variables.

When you fogot to clamp or clamp on the wrong position, maybe a variable gets above/below the targeted number.

E.g. for health: when you forgot to clamp, the branch with “==” (equal) will neber be true and the next action never executes.

So I say, always use less then or greater then. For the “isDead” do

if health <= 0 then DO sth (kill player; restart game, etc…).

Other opinions are welcome.

Cheers!