I have this code that returns <no path>:
- Object box = model().find("Tools/FlowItemBin/Box/Box");
- treenode itemBehaviour = box.attrs.behaviour;
- return itemBehaviour;
But this code returns "It exists":
- Object box = model().find("Tools/FlowItemBin/Box/Box");
- treenode itemBehaviour = box.attrs.behaviour;
- if (itemBehaviour)
- return "It exists";
- else
- return "It does not exist";
It returns "It does not exist" if I change the second row to:
- treenode itemBehaviour = box.find(">behaviour");
Why does this happen? Is it because those are hashed nodes?