Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Conditional XML

$
0
0

So, I have been playing with the conditional XML 'IF' statement and originally used the condition as specified here. According to the documentation, you should be able to reference the arguments that are passed in using $.args.hereIsTheArgumentName

After trying this and getting an error that it could not find the argument object, I changed my xml to read if='arguments[0].hereIsTheArgumentName'. Based on the code generated in the Resources directory, this works. Just wondering if I am missing the syntax somehow (don't want this to break in the future) or if this is a problem with the documentation... or should I log this in JIRA?

Ray


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>