Add Conditions for Attributes
- Last UpdatedOct 24, 2024
- 2 minute read
If you want to specify any conditions based on which the attributes must be exported, you can do so by adding an IF condition to the object tree.
To add an IF condition:
-
On the Element Type Mappings page, select the required element type from the Current Element Type list.
-
On the EIWM tab, select the root of the object tree Object, right-click and select Add Other > If Condition. The IF condition is added to the tree and the area to add the condition appears.
-
Click the Add icon. The PML Condition Expression box appears.

-
Type the condition in the box. An example condition is as follows: NAME eq 'TRA001-RECT'
-
After providing the condition, to specify what needs to be done when the condition is met, add a member to the If statement. To do this, select If, right-click and select Add EIWM, and then select the attribute that you want to add. For information on how to add attributes, see Add Attributes to Element Type.
-
If you want to specify what needs to be done when the condition is not met, you must add an Else member to If. To do this, select If, right-click and select Add Other > Else.
-
After adding the Else member, select Else, right-click and select Add EIWM, and then select the attribute that you want to add. An example IF condition is as follows:

Note: You can also add nested conditions using IF-ELSE IF and IF-IF-ELSE IF and so on.