Consider this XML:
<root>
<node>
<subNode>123</subNode>
<anotherNode>abc</anotherNode>
</node>
<node>
<anotherNode>abc</anotherNode>
</node>
</root>
This works, because E4X only finds 1 match, and returns an XML instead of an XMLList:
trace(myXml.node.subNode); // 123
But why this throws an Error #1065: Variable subNode is not defined
?
trace(myXml.node.(subNode == 123).anotherNode);
Why doesn't it trace <anotherNode>abc</anothernode>
?