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

Home » Public Forums » archive » multi conditional for loops
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
multi conditional for loops [message #20386] Tue, 20 June 2000 00:00
Ken Mankoff is currently offline  Ken Mankoff
Messages: 158
Registered: February 2000
Senior Member
Hi *,
I am interested in coding with a c/c++ style multi-conditional for
loop.

c++ ex:
for ( int i = 0; ( ( i < 10 ) && ( j <= 4 ) ); i++ )
{
/* do something */
}

Here is sample IDL code. It runs but produces very interesting
results. (this is IDL5.3 on Linux RH6.2)

PRO test
j = 0
FOR i = 0, ((j LE 4) AND 10) DO BEGIN
j = j + 2
PRINT, i, j
ENDFOR
END

thanks for any info,
ken.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL for linux on Macintosh ppc
Next Topic: Re: axis in scientific notation

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

Current Time: Wed Oct 08 19:32:52 PDT 2025

Total time taken to generate the page: 0.00372 seconds