SCENARIO: Some of your customers require their VAT number to be displayed on the invoice document. Your M3 customer master file only has the VAT number for several customers however you do not want to have the label VAT Number appearing with no accompanying value on an invoice.
- Open the OIS1990H event and transform the spool-field 0HWYVRNO into a variable
- Open the PageOut and insert a Static Text object (this will be your label) to your canvas
- Rename the label to VAT Number
- In the Message window, collapse the Variable folder and drag the variable $0HWYVRNO to your canvas – to the right/below of the label.

- Right-click on the label and select Edit Script…
- Insert the following code:
if ($0HWYVRNO = “”) {
skip();
}
else {
{}
}
The label VAT Number will now only appear if a value exists for the spool-field 0HWYVRNO. If the spool-field 0HWYVRNO value is blank then the label will be skipped (i.e. not appear).
Export and deploy and test!