If condtion in JAVA

if condtion:; in my docx file how to set if codntion and each loop…how to do it ?? example like i use previously handlbar…so i use these type of condtion…here how to use in aspose {#each mainFormAndBorrowerData.CustomerDetails}} {{#if firstName}}{{firstName}}{{else}}.....{{/if}} {{#if lastName}}{{lastName}}{{else}}.....{{/if}} {{/each}} {{else}} ......... {{/if}}

@sridharcb You can use LINQ Reporting engine to achieve this. Please see our documentation to learn how to implement ForEach loop:
https://docs.aspose.com/words/java/outputting-sequential-data/
And conditions:
https://docs.aspose.com/words/java/using-conditional-blocks/