Atom

Elif

Use elif when there is another condition to check after an earlier condition fails. Atom runs the first matching block.

Detect critical health

Test for zero health before testing the low-health threshold.

Atom
health = 20

if health <= 0:
    print('Dead')
elif health < 25:
    print('Critical health')
else:
    print('Healthy')
Output
Critical health

The first condition fails and the second succeeds, so the else block is skipped.