mardi 29 janvier 2019

Pagebreak in if statement triggers regardless if the statement is true

I'm currently working on creating a Word-Template (first time so maybe the question is more trivial than i actually think). The following is my problem:

Ive got the statement:

{if {MERGEFIELD group}<>"" "{MERGEFIELD group \b "[str+enter]"}" "test"}

I've got the data set up as:

Company |Group     | address  | phone
lorem        |  ipsum  | dolor       | sit
amet         |              |consetetur| sadipscing
lorem 2     | ipsum2 | dolor        | sit
amet2       |              |consetetur| sadipscing
.
.
.

What i try to achieve:

Grouping my data and having a pagebreak before each new group starts.

What i get:

A pagebreak after each package is handled, non regarding if group is empty or not (he prints "test" and "MERGEFIELD group" at the correct times).

Aucun commentaire:

Enregistrer un commentaire