Here is the following script I am having trouble with…
var chain = new Array();
var show, season;
var location = obj.location.split('/');
var rootindex = 0;
var conchain = null;
for (var i = rootindex; i < location.length; i++)
if (location_ == 'Photos')
rootindex = i;
contchain = 'Photos');
if (rootindex >= location.length)
if (location != 'Photos')
for (i = rootindex; i < location.length - 1; i++)
I am basically wanting to exit out of the routine if I reach the end of the string with no hit on picture or
Photos is not in the location.
It ignores this and adds pictures from anywhere that the other routines find a picture.
What am I forgetting? or doing wrong… Also is there a flag to turn print on… I have enabled debug and also just ran with no debug on and I get no output when I call print('foo') from within any of my routines.
Fixed…. turned scripting on again and it started to work.