IF functions don't work with XML?


I’m bringing certain words into a dynamic text box through XML.

So when you click on IMG1 it displays ''Caption 1" in the dynamic text box.
IMG2 displays “Caption 2” etc…

I thought it would be fairly easy to right an IF function so that when the dynamic text box says ''Caption 1" it will then perform a trace to show that it works.

The dynamic text box has instance name of “contentPull” and var name of “inputText”

if (inputText == "Caption 1"){
      trace("it worked");
if (inputText == "Caption 2"){
      trace("it worked 2");

Any help? :beam: