Please enable JavaScript to view this site.

InterFormNG2 Manual

It is possible to specify, that some design elements should only be included if a certain condition is met. For that you can use the If element as described below. A more advanced option is to use the select element.

 

You can insert an If element with this icon:

 

NG2If0001

 

The icon is found by clicking the '+' icon to reveal the second row of design elements:

 

NG2If0002

 

 

The setup of the If element is shown below:

 

NG2If0003

 

The condition is setup as a standard XPath expression, which is expected to return a boolean (true or false). You can click the magnifying glass to insert references to a sample XML file, variables and/or internal functions.

 

If you insert a condition for a spooled file, then you should consider to activate the relative mode and setup an anchor line to make it easier to use the ng:spoolMapRel function if needed.

 

If the condition is true, then the elements placed in the sub-folder of the If element are executed:

 

NG2If0004

 

The If element has no 'else' option. If you want that functionality, then you should check out the select element.

 

You can find help regarding how to build up a valid condition in this video: