I've managed to figure out how to provide a textbox on each scene in a tour. I've even made it dynamic by creating a correlation between scene names and my data fields:
<scene name="scene_01" ...
<scene name="scene_02" ...
<scene name="scene_03" ...
...
<data name="desc_scene_01">Scene 1.</data>
<data name="desc_scene_02">Scene 2.</data>
Not every scene has a description so for those scenes, I want to test for the existence of the data element and just hide the text layer. That is where I'm having a problem.
I can do this to get what the data elements should be IF they exist with no problem:
txtadd(dataName,'desc_',get(scene[get(xml.scene)].name));
txtadd(dataAssignName,'data:',get(dataName));
set(dataContent, get(data[get(dataName)].content));
I can even do a trace to see what the content of the field is and the trace returns null if the scene doesn't have a corresponding data element (such as scene_03 above). This returns null for scene_03...returns content for scenes 1 and 2.
But, when I do this on the very next line it says, "not null"
HUH? How can get(dataContent) evaluate to null on one line and then when I do a comparison on the very next line and compare it to null, it evaluates to false?