jsonData = JSON.parse(global("HTTPD"));
var y = 0; // needed a separate incrementing var for TLIST
if (jsonData[0].data[0] !== 'undefined') {
for (i = 0; i < jsonData[0].data.length; i++) {
setGlobal('TLIST'+y, jsonData[0].data[i].content);
y++;
}
}
if (jsonData[1].data[0] !== 'undefined') {
for (i = 0; i < jsonData[1].data.length; i++) {
setGlobal('TLIST'+y, jsonData[1].data[i].content);
y++;
}
}
if (jsonData[2].data[0] !== 'undefined') {
for (i = 0; i < jsonData[2].data.length; i++) {
setGlobal('TLIST'+y, jsonData[2].data[i].content);
y++;
}
}--You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/IsXykPFt75I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
Visit this group at http://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/d/optout.
On Sep 10, 2014 3:24 PM, "Scott" <scott...@gmail.com> wrote:
>
> ... all caps is reserved for all built in variables ...
This is not accurate. Built in variables happen to be all caps, because they are global variables, but any global variable, even user defined variables, can be all caps. See the user guide for details about global and local variables.