Erstellung einer IF Bedingung mit einer flash-detection