-
Run script only if comp exists in project
Hi all,
I’m trying to create loop that keeps checking if a comp exists. I want the loop to keep running until the comp exists, and once the comp is found run the rest of the script.
So far I have a basic for loop, but it doesn’t seem to be doing anything
for (var i=0 ; i<app.project.numItems.length; i ++)
if (app.project.item(i). name != “FINAL 2”)
{
break;
}
Thank you
Sorry, there were no replies found.