Operators in stata and how to create new variable calculated from other variables

if, and ,or operators in stata and how to use them to create new variables