Check out example codes for "google sheets if". It will help you in understanding the concepts better.
Code Example 1
# Basic syntax: =IF(condition, outcome_if_true, outcome_if_false) # Note, the default setup for IF in Google Sheets is an IF ELSE # Example usage: =IF(A1 = "this text", "Houston, we have a match", 0) # This returns "Houston, we have a match" if cell A1 is "this text", # otherwise, it returns the number 0
Learn ReactJs, React Native from akashmittal.com