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

Home » Public Forums » archive » Empty FOREACH loop
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: Empty FOREACH loop [message #81732 is a reply to message #75108] Fri, 12 October 2012 15:40 Go to previous message
Bill Nel is currently offline  Bill Nel
Messages: 31
Registered: October 2010
Member
On Friday, October 12, 2012 5:33:01 PM UTC-4, Dick Jackson wrote:

> IDL> foreach x, myUndefinedNonVariable do print,x
>
> % Variable is undefined: MYUNDEFINEDNONVARIABLE.
>
> Would anyone else agree that with no elements in myUndefinedNonVariable, this should quietly do no iterations?
>
> -Dick

Think about the fun you'd have should you happen to misspell an honest-to-goodness defined variable :-)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Overlay a coloured boundary on a gray scale image
Next Topic: shading a portion of the graph

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

Current Time: Fri Oct 10 10:56:24 PDT 2025

Total time taken to generate the page: 1.59285 seconds