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

Home » Public Forums » archive » Re: idl6.2 and if statemente
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: idl6.2 and if statemente [message #45893 is a reply to message #45892] Sat, 08 October 2005 14:37 Go to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
Reimar Bauer <R.Bauer@fz-juelich.de> writes:


> Dear all
>
> probably I am confused from some of the other languages I used in the last
> days.
>
> text is a vector of length two
>
> IF N_ELEMENTS(text) then dummy=TEMPORARY(text)
>
> does not give true till I changed it to
>
> IF N_ELEMENTS(text) gt 0 then dummy=TEMPORARY(text)
>
>
> Is there something changed in this behaviour I was sure the first one will
> work.

Reimar,

IDL has always defined the odd integers as true and the even integers as
false. Since IDL version 4 at least.

Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@REMOVEcow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: idl6.2 and if statemente
Next Topic: CALL_EXTERNAL error when calling a C program

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

Current Time: Thu Oct 09 17:06:58 PDT 2025

Total time taken to generate the page: 0.88655 seconds