Student or Learner
What does as long as mean?
According to a dictionary, it can mean because or if.
as long as - Idioms - by the Free Dictionary, Thesaurus and Encyclopedia.
As long as you're going to the bakery, please buy some fresh bread
You can go out this evening as long as you promise to be home by midnight.
'Provided that' is closer to the meaning, especially in your second example. In the first, 'given' that' is closer.
We also have the straightforward meaning in"'Her hair is as long as Jody's".