How to use "if" statements in Stata. If statements are used to apply operations to a limited subset of your data.
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.