The IF function in spreadsheets allows you to test a condition and return one value if the condition is true, and another value if the condition is false.
Here's a basic structure:
=IF(condition, value_if_true, value_if_false)
For example, if you want to check if a cell A1 is greater than 10, and if true, display "Yes", otherwise display "No", you would write:
If the value in cell A1 is indeed greater than 10, it will display "Yes", otherwise "No".