Conditional INCLUDETEXT based on data merge
Please forgive me if this has already been addressed, but I have looked high and low for the solution I need.
I want to pull text from a document based on data that merges from a CSV. While I have been able to find where I can do this by using If/Then statements, I do not want to type the conditions in the source documents itself.
Basically, I need this to work the same as a conditional includeimage. So, I have images in the source folder as {includepicture { if true "{mergefield LIST_ID}.png}" \d} so that the logo is placed in the document based on the list id that is imported. Each logo is named the same as the list id (123.png)
I tried {includetext { if true "{mergefield LIST_ID}.doc}" \d} to no avail. I simply got a blank space.
I hope this makes sense. I was able to find the answer there for that problem, and hope I can get the answers I need for this, too.
|