To make practical sense, an if statement needs a boolean value that's only true if a condition is fulfilled.

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