[DDMD] Expand huge if condition