Resolving multiple s's appearing across documents Answered
Hi all,
We are having an ongoing issue with pluralizing certain words.
I am currently working in a document that starts in #shareclasses and leverages #transactions as well. In this area of the document, we need coding for share/shares depending on the number issued. Currently, we have this coded as such: share{#transactions | type:'Issuance'}{#numShares > 1}s{/}
The issue is that when the document is generated, we get an equal number of s's for the number of issuances. So if we have 3 issuances being described in this document, we get sharesss.
Does anyone have any advice on how to resolve this ongoing issue with our documents? Would removing the # from numShares help?
Thank you
Comments
1 comment
Hi Kate McCandless,
This code: {#transactions | type:'Issuance'} means that you have opened the transactions loop. That is why it's repeating for each issuance.
In this case, you must only code in the logic without opening the loop: {#transactions | type:'Issuance' | sum:'numShares' | gt:1}s{/} --> what this is saying is "if the issuance transactions have more than one share, then add the 's'"
Cheers,
Joanna
Please sign in to leave a comment.