comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Skip file during loop based on subprocess
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Skip file during loop based on subprocess [message #91570] Thu, 30 July 2015 04:55 Go to previous message
Kai Heckel is currently offline  Kai Heckel
Messages: 51
Registered: April 2015
Member
Hey there!

Here is what I have:

FOR f=0, N_ELEMENTS(foldername)-1 DO BEGIN<-----
IF test EQ 1 THEN BEGIN -
IF test EQ 1 THEN BEGIN -
IF test EQ 1 THEN BEGIN -
PROBLEM >--------------------------
ENDIF
ENDIF
ENDIF
ENDFOR


What I'd like to do:

If an error in the third IF statement occurs/ if the statement does not match the criteria, then the FOR-loop should skip the current file (f=n) and continue with the next file (f=n+1).

I saw that there is a function called CONTINUE but I couldn't make it work yet.

Does anyone have solution for this problem?

Thank you very much!

Greetings
[Message index]
 
Read Message
Read Message
Previous Topic: FG bug
Next Topic: Dynamically naming structures in IDL

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 12:04:22 PDT 2025

Total time taken to generate the page: 0.00382 seconds