You might use an if statement for age checking on a website. For example, you give the user a way to input a date and then use an if statement to determine if the inputted age is greater than or equal to eighteen.
A comparison will return a value of either true or false: a boolean.