なら、貸してあげるよ

if you want/need it, I'll lend it to you

→ だ
phrase Rare #44,505
if you want/need it, I'll lend it to you なら introduces a condition, and 貸してあげるよ is a casual offer to lend something as a favor.
JA: その本が必要なら、貸してあげるよ。
EN: If you need that book, I'll lend it to you.

もしお金が欲しいなら、貸してあげるよ。

If you need money, I can lend you some.

鉛筆がいるなら、貸してあげるよ。

If you need a pencil, I can lend you one.

それ必要なんなら、貸してあげるよ。

If you need it, I can lend it to you.

このペンが欲しいのなら、貸してあげるよ。

If you want this pen, I can lend it to you.