Hi guys, you may help me a lot. I am trying to write a script to process(merge color) files, if the array of those file names exist(hope I expressed myself clearly). I am not sure why the ture false didn’t work. Here is my script. Many thanks:
for (j = 0; j < list.length; j++) {
file = list[j];
filename = File.getNameWithoutExtension(list[j]);
if(endsWith(file, "_1.tif")) {open(file); files_1 = Array.concat(files_1, list[j]);}
else{continue;}
}
if( files_1 == false){merge(files_1);}
else{print("no array");}