In a customer export there are definition lines for both the Name and Name2 field. In case the Name2 field has a value, I want to show the Name 2 field and not the Name field. If the Name 2 field is empty, I only want to show the Name field.
On the Name field I set the following Output Condition:

Condition Value Value 2
Is Empty [E0009-NAME2]

On the Name 2 field I set the following Output Condition:

Condition Value Value 2
Is not Empty

Make sure to add the SETTEMPVAL function on the Name 2 field as well (Code = E0009-NAME2).

In case the Name 2 field is empty the result looks like this:

In case the Name 2 field is not empty the result looks likes this:

Need more help with this?
Product page

Thanks for your feedback.