Closing Balance Amount in CustomerSstatement email template

When emailing a Customer Statement, I use an email template which includes the following ‘code fields’ {{recipient.code}} and {{recipient.name}}. I would like to include the Closing Balance as an extra field in my template text.
What is the ‘code field name’ of the closing balance (including currency and dt, cr indicator)? Thks. E.

Closing balances in customer statements are created by the same code in a theme that creates totals in transaction forms. That is, they are part of the table.total array. They will be the last element.

Thanks Tut.