Hi, we are working with the trial of Aspose and are in the final stages of development of our product with intent to purchase Aspose.
I prefer to be able to reference a bookmark to get to values that have already been determined by complex IF statements previously. I came to realize in short order that if a bookmark is nested within the true part of an IF, it is not accessible to the document unless the IF condition is true. This makes sense, so I can’t complain too much.
I intended to use a SET as a work-around, whereby I would place it at the top of the document before any IF’s, etc. It doesn’t work. I am versed with creating fields using Ctrl/F9, so that is not an issue.
Here’s what I have:
{Set ChildOrChildren “{if {mergefield childcount} >1 “ren”}”}
The father of the child{REF ChildOrChildren} <----- this throws an Error! Unknown opcode for conditional.
The father of the child{ChildOrChildren} <----- this does not produce the “ren” and is only leaving “child,” even though childcount>1.
The output actually shows the following as regards the SET:
{Set ChildOrChildren “ren”}
Alt/F9 makes it disappear.
Since I can see that it is actually setting the value to “ren,” the problem lies in trying to refer to it.
Incidentally, the IF’s and Mergefields do not toggle with Alt/F9 and remain invisible to the end user of the output file. This is not the case with a SET, since it obviously is appearing.
I was really hoping for a way to solve my problem AND have output that reveals none of the inner-workings to the end user.
I could cut and paste the evaluations everywhere they are needed, but this is not only tedious, but it diminishes legibility of the templates we are building.
Thanks in advance for any input/recommendations.