I am trying to generate a new variable using the "if" command based on 3 other variables
ex:
gen completetx=1 if (neo==1 & surgery==1 & adjuvant==1)

However, it seems that stata only reads the first 2 conditions, and ignores the third. Am I doing something wrong? Is it possible to have more than 2 conditions with an if command? Thanks!