If a life insurance policy loan is made and the insured person dies before it is repaid will the beneficiary receive cash value or death benefits?

Subject to the terms and conditions of the policy, the outstanding balance of the policy loan (plus accrued loan interest, the rate of which will be stated in the policy) will be deducted from the death benefit. The balance of the death benefit will be paid to the beneficiary.