6 Replies Latest reply: Oct 16, 2014 4:14 AM by Peter Cammaert RSS

    Next inside and If Then

    Debbie Butler

      I need to cycle through a bunch of files being generated by another program. 


      If the file is  empty I need to skip to the next file.


      I am getting a script error on the next inside of the if statement.


      Any ideas.    If you comment out the if statement this works.   If you remove the next and add other logic this works.


      for Each v_file in a.qvd, b.qvd, c.qvd

         Let vQVDExists = if(FileSize(v_file) > 0, -1, 0);

      IF $(vQVDExists)=0 THEN
      next
      END IF;

      // Do load of file here

      next