Issues with nested IF’s still linger. It has been driving me crazy. I see somewhat of a pattern. It seems to be an issue when an internal IF ends at the end of its parent IF. The parent IF does not like to end with another IF. It wants something else, and that “something else” is a new paragraph.
{IF {MERGEFIELD Q1} = true “{IF {MERGEFIELD Q2} = true “this text
with new paragraphs
and more paragraphs” “that text
with some new paragraphs
and more paragraphs”}” “”} => no go
But if you press enter after the second-to-last bracket, it works:
{IF {MERGEFIELD Q1} = true "{IF {MERGEFIELD Q2} = true “this text
with new paragraphs
and more paragraphs” “that text
with some new paragraphs
and more paragraphs”}
" “”} <= this new paragraph corrects the problem
Of course, you wind up with an unwanted line. Worse, however, is the problem of having to figure when you need to press enter for a new paragraph. It gets crazy and frustrating when you have sub-documents you are importing into the main document. The result is sometimes you see large chunks of missing output, and in other cases, it acts as if the IF statement evaluated to false when you know for a fact it is true.
I have a handful of documents I would be happy to review with you. The problem with just posting them is that they reference data which is fed from a database, and the code to run all this is kind of complex. I don’t know that giving them to you would help or not.
I have attached one so you can see anyway. Notice the seemingly unnecessary new paragraph at the bottom? It is necessary, or it will not work.
Anything you could do to confirm and find the bug would be very helpful. We waste far too many hours running into this issue and trying to know “where” we need to press enter and add an unwanted line. I will be happy to work with you and share anything. You can log onto my machine remotely and watch the process if it helps. I can recreate the issue with ease in only seconds.
Please remove the attachment from public view once you get it.
Thanks.