try replacing your line with this
if (digitalRead(6)||digitalRead(0)||TF == 2) {return;}
If it works, there is something wrong in the rest of your code.
try replacing your line with this
if (digitalRead(6)||digitalRead(0)||TF == 2) {return;}
If it works, there is something wrong in the rest of your code.