1# Basic syntax:
2=IF(condition, outcome_if_true, outcome_if_false)
3
4# Note, the default setup for IF in Google Sheets is an IF ELSE
5
6# Example usage:
7=IF(A1 = "this text", "Houston, we have a match", 0)
8# This returns "Houston, we have a match" if cell A1 is "this text",
9# otherwise, it returns the number 0
1IF(A2 = "foo","A2 is foo")
2
3IF(A2,"A2 was true","A2 was false")
4
5IF(TRUE,4,5)