I'm not sure if this is possible or if it is how to go about it. I have a lot of labels that I am creating using data merge. Certain text fields require a label like this…
Label 1: Merged text data
Label 2: Optional merged text data
Label 3: Optional merged text data
Label 4: Optional merged text data
I have a number of different label styles where the sometimes the label is not used and sometimes it may be a different layout, such as above the merged text. So I have kept the label out of the data and simply hard coded it into the merge template. So I had to create a number of variations for each layout if it has label 1 and 3 but not 2 etc.
I aslo have empty line removal, the hard return will be removed if empty.
So I wonder if it is possible to use Grep to check if text exists for a certain field and conditinally add the styled label text. So I could reduce my template variations. In all I have a bout 5 fields that require this.