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

Home » Public Forums » archive » Re: error using statement: If.....then
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: error using statement: If.....then [message #54543] Tue, 26 June 2007 20:27 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Ed Hyer writes:

> IDL also provides many good ways to do this logical operation without
> loops or explicit IF/THEN, such as:
>
> x = ( x > 0) + (x lt 0);
> x = (x*(x ge 0)) + (x lt 0);
> x = (x > 1) - ( x eq 0);
>
> , all of which accomplish what you're trying to do here.

I wonder if the error in your previous article couldn't be
caused by obfuscated code. :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: loading colors in tvscl
Next Topic: Segmentation fault: IDL Version 6.3 (linux x86 m32)+Debian SID

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

Current Time: Sat Oct 11 01:37:53 PDT 2025

Total time taken to generate the page: 1.67865 seconds