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

Home » Public Forums » archive » simple question about bytes
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: simple question [message #20156 is a reply to message #16986] Thu, 18 May 2000 00:00 Go to previous messageGo to previous message
promashkin is currently offline  promashkin
Messages: 169
Registered: December 1999
Senior Member
Isn't breaking out of DO loops the same as using conditional loops? FOR
/ DO have a particular purpose, to execute a certain number of times.
For repeating under a condition, WHILE and REPEAT are provided, I think.
Cheers,
Pavel

Paul van Delst wrote:
>
> Craig Markwardt wrote:
>>
>> "richard hilton" <rdh5@dmu.ac.uk> writes:
>>
>>> This probably sounds like a stupid question but does anybody know of an IDL
>>> equivilent to the CONTINUE command in C/C++ ? Your help would be much
>>> appreciated.
>>
>> I've wished for an equivalent to continue and break, but have never
>> found it. You will have to do use GOTO explicitly.
>>
>> for i = 0, n-1 do begin
>> if val(i) EQ 0 then goto, NEXT_VAL ;; equivalent to continue
>> compute_val, val(i)
>> if val(i) LT 0 then goto, DONE_VAL ;; equivalent to break
>> NEXT_VAL:
>> endfor
>> DONE_VAL:O
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: directing control after program interruption
Next Topic: runtime IDL, blocking widgets

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

Current Time: Sun Oct 12 14:19:40 PDT 2025

Total time taken to generate the page: 2.23955 seconds