I am using two line followers and two flashlights to move parts from one line sensor to the other and on but they need to have a 10 second stop once they reach both sensors.
Looks like you are using legacy Cortex and need to employ timers.
Please, tell if these Timer examples are helpful, and if not give us more details of what you are trying to do and if you already have any ideas or code written down.
If it is a “if part at both sensors then wait” problem, you could just add a else if statement. Not sure if what you are asking though