Filtering Items Using the Condition= In and By Attributes

You can use the condition="in” by="…" attributes to return any property for any item type. The following example finds all Type A items that reference type B items that have a cost greater than 10 associated with them:

In the following example, the user wants to retrieve all CADs with the same name as the PART items where the cost of the PART items is equal 100.

<AML>

  <Item type="CAD" action="get">

    <name condition="in" by="name">

      <Item type="Part" action="get" select="name">

        <cost>100</cost>

      </Item>

    </name>

  </Item>

</AML>