means that one thing can happen if another thing happens first
You can stay as long as you help me clean up.
掃除を手伝ってくれる限り、あなたはここにいてもかまいません。