Listing Variables in Sentence Format

Joanna Payoyo
Joanna Payoyo Athennian DocAuto Team Document Coding - Level 3
  • Updated

The toSentence function allows us to modify the format of a looped variable into sentence format.

Syntax

{collection | toSentence:'variable'}

Since we are not opening the collection, and this is not logic, there are no {#} opening tags or {/} closing tags required.

Sample Share Classes Data

Common

Class A Special

Class A Common

Input The class names are {shareclasses | toSentence:'className'}.
Output The class names are Common, Class A Special and Class A Common.
The toSentence function will only take in one variable with no customizations.

This means that a sentence that reads like the following is currently not possible, as each "list item" is made up of multiple variables:

There are 100 Common shares, 25 Class A Special shares, and 150 Class A Common shares in the capital of the Corporation.