# E4X question

**URL:** <https://forum.kirupa.com/t/e4x-question/256377>\
**Category:** flash\
**Created:** [April 2, 2008, 4:31pm UTC](https://forum.kirupa.com/t/e4x-question/256377 "2008-04-02T16:31:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![buckcee](https://avatars.discourse-cdn.com/v4/letter/b/5fc32e/32.png) [@buckcee](https://forum.kirupa.com/u/buckcee)\
**Post date:** [April 2, 2008, 4:31pm UTC](https://forum.kirupa.com/t/e4x-question/256377/1 "2008-04-02T16:31:23Z")

</div>

Hello everyone,  
I’ve been reading chapter on E4X in Essential AS3  
and I’m having trouble understanding this one thing.

> var product:XML = \<PRODUCTQUANTITY=“1”\>\<COST\>1\</COST\>\<QUANTITY\>1\</QUANTITY\>\</PRODUCT\>;

//why would this output to true whereas  
trace(product.COST.\*[0] == product.QUANTITY);

//this one outputs false??  
trace(product.COST == product.QUANTITY);

It’s on page 408 if you have the book.

Thank you.
