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

Home » Public Forums » archive » Re: Use of STOP inside an IF statement
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Use of STOP inside an IF statement [message #60881 is a reply to message #60880] Tue, 17 June 2008 11:01 Go to previous messageGo to previous message
Brian Larsen is currently offline  Brian Larsen
Messages: 270
Registered: June 2006
Senior Member
> But I think there is something else going on here that
> is confusing you.

As is the norm, I think that David is right here. Your command:
spawn, 'mkdir '+output_dir, message
will not have any output unless there is an error in the creation. So
the statement:
IF ( string(message) ) then begin
is a little odd as you are testing '' (nothing), with IF. You
probably want something more like:
IF strlen(String(message)) ne 0 then begin ;; print an error message
and go about you business

The reason that you are never hitting the STOP is that the IF
statement is never true.


Cheers,

Brian

------------------------------------------------------------ --------------
Brian Larsen
Boston University
Center for Space Physics
http://people.bu.edu/balarsen/Home/IDL
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: How to print from an iTool? In color.
Next Topic: ASCII TEMPLATE (read the 31 column of ascii file only)

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

Current Time: Mon Oct 13 09:06:25 PDT 2025

Total time taken to generate the page: 1.76129 seconds