=IF(logical_test, value_if_true, [value_if_false])
=IF(A1>70,"Pass","Fail") // returns "Pass" for scores above 70
This example returns "Pass" if the value in A1 is greater than 70. If the value in A1 is less than or equal to 70, the function returns "Fail".
=IF(C5>=70,"Pass","Fail") // returns "Pass" if C5 is greater than or equal to 70
This example returns "Pass" if the value in C5 is greater than or equal to 70. If the value in C5 is less than 70, the function returns "Fail".
=IF(C5<70,"Fail","Pass") // returns "Fail" if C5 is less than 70 and returns "Pass" if not
This example returns "Fail" if the value in C5 is less than 70. If the value in C5 is greater than or equal to 70, the function returns "Pass".
=IF(B5="red",100,IF(B5="blue",125)) // returns 100 if B5 equals "red" else returns 125 if B5 equals blue
This example returns 100 if the value in B5 is "red". If instead the value in B5 is "blue", then this example returns 125.
The IF function is a popular Sourcetable function that allows you to compare a value with what you expect that value to be.