Dance, when you're broken open. Dance, if you've torn the bandage off. Dance in the middle of the fighting. Dance in your blood. Dance when you're perfectly free.
Joy does not have to wait until the pain is over. The quote says that movement, celebration and aliveness belong to the hardest moments too: when you are shattered, when you have ripped off the protective covering and left a wound exposed, even when you are in the middle of a conflict. Dancing here is not denial. It is a way of staying fully present in whatever is happening, rather than holding life at arm's length until conditions improve.
The idea fits the Sufi tradition that Rumi belongs to, where suffering and love are seen as paths that open the heart to the divine. The Mevlevi order, which grew from his followers, is known for its whirling ceremony. Still, this wording is a free English rendering that circulates widely, so it may be looser than Rumi's original Persian.
A person today might apply it after a painful breakup or a job loss. Instead of waiting to feel "better," they could put on a favorite song in the kitchen and move badly and honestly, tears included. The point is not to fix the pain but to let it share the room with life.