If one team breaks a rule but the other team can still gain from the play, the referee may let play go on. The referee will blow the whistle if no advantage comes.
The referee shouts "advantage" and raises an arm, so players know play continues.
The aim is to keep the game flowing and not punish the team that was fouled.
The referee decides when an advantage has been gained. After a penalty offence, the team must gain more than after an offence that only leads to a scrum.
Advantage is gained if the team gains ground, territory or has a clear tactical option.
If the advantage is not gained, the referee returns to the place of the first offence, and gives the scrum or penalty.
Example
A defender is offside, but the attackers pass to the wing, who breaks through. The referee calls "advantage over", and play goes on.