Definition
This phrase indicates that one event or condition must be fulfilled before another can occur; it means 'on the condition that'.
You can leave work early as long as you finish the report on time.
We can have a picnic outdoors so long as the weather stays clear.
You can join the club as long as you follow the rules.