Adding delay for repeating loop in Material Graph

I have a simple Material Graph for a constantly pulsing light.

I need to modify it so that after 2 pulses there is a delay before the next 2 pulses, etc.

Not sure how I would modify the graph (attached).

Off the top of my head. Use 2 sine waves, one primary sine wave will be longer and clamp to the value of either 1 or 0. That will control the delay portion.

Sorry I’m late but I’m actually doing the same thing so here you guys go for future reference:

Using FMOD essentially resets the time to 0. The Time node counts upward continuously from Begin Play. So, if we take the FMOD of Time and the delay, the output resets when Time reaches the delay. By taking the maximum of this value and the delay, we ensure that time only passes through once it exceeds the delay.

We also need to add the duration of the effect to the delay input for FMOD. This allows time to activate the sine wave, but once the effect duration ends, it will reset.

If the sine wave plays once per second, we can specify how many times it should play using Count/Frequency. This effectively determines the effect duration, which we then add to the delay before applying FMOD to Time.