adds an if-else statement encapsulating the assignment of DFLAGS