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 #54548 is a reply to message #54543] Tue, 26 June 2007 17:50 Go to previous messageGo to previous message
MarioIncandenza is currently offline  MarioIncandenza
Messages: 231
Registered: February 2005
Senior Member
>> IF x LT 0 then x = 1

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.
[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 09:23:34 PDT 2025

Total time taken to generate the page: 1.11928 seconds