Best way to add conditional logic to an invoice statement

Not sure how to approach this in Wappler. i have several types of billing statements that I create based on the type of job I do for them. I’d like to have one statement which can work for all of these types of jobs. What I need is to populate one medium editor textbox with the appropriate combination of fields,formatted with line breaks etc depending on the value of my invoice_type field. What is the best way to approach this in wappler? Im thinking an app flow sounds like it should do this. Not sure how to set the valueof the textbox from within the flow. If there is a completely different way to approach this that I should be thinking about, that’s ok too.

Thanks,
Rick