If statements work best when they check booleans that are a result of a comparison. That way, the condition can either be true or false.

There! That's why websites use if statements to log in users.