if you want/need it, 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.