I'll show you the basic usage of IF function in Google Drive Spreadsheet. The IF function returns one value if a specified condition evaluates to TRUE, or another value if it evaluates to FALSE.
Lots of people think using a layer mask is only for the advanced Gimp users, fortunately this isn't the case at all. Let me explain you the basic usage of layer mask on a easy to follow step-by-step example.