Using Animation Blueprint, is there a way to cancel and repeat certain state?

Let’s say I have a model with Idle and Attack animation states. By receiving an attack signal, it goes from Idle to Attack, and at the end of the Attack animation, it goes back to the Idle. But I want the Attack state to do itself over when it receives the attack signal, like in a fighting game and spamming light attacks, canceling itself. Is it possible?