A boolean is the simplest value in all of programming: it’s either true or false. A light switch. On or off. That’s the whole type, and yet every decision your game ever makes comes down to one.
You already know this, so here’s the key idea to lock in: a comparison is not a question you ask, it’s a value you get back. When you write health < 100, Lua hands you a boolean. You can store it, print it, or use it later.
local lives = 3
local gameOver = lives == 0
print(gameOver)
Watch the operators carefully. A single = assigns a value to a box. A double == asks “are these equal?” Mixing those two up is the single most common bug in the world, so when something acts weird, this is the first place to look. The others are ~= (not equal), <, >, <=, and >=.
Now make it yours: build isHurt from a comparison and print it. Then change health to 100 and predict what prints before you run it.