The IF function outputs one of two values depending on the result of a comparison.
The IF Statement in Google Sheets