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

Home » Public Forums » archive » Easy question?
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: easy question [message #45755 is a reply to message #16325] Thu, 06 October 2005 11:21 Go to previous messageGo to previous message
Haje Korth is currently offline  Haje Korth
Messages: 651
Registered: May 1997
Senior Member
use "case 1of"

<ChiChiRuiz@gmail.com> wrote in message
news:1128621045.617508.124150@g47g2000cwa.googlegroups.com.. .
> I'm pretty new to IDL. I've learned that the if-else statement goes
> like this:
> if (expression) then begin
> ...
> endif else begin
> ...
> endelse
>
> I was wondering what if IDL supports the following (as in Matlab):
> if (expression1) then ...
> else if (expression2) then...
> else if (expression3) then...
> ...
>
> endif
>
> What's an alternative approach for it? Or I'll need to write a nested
> if-else statement?
> thanks for your help.
>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Five days mean values
Next Topic: Re: how to use map_set in object graphics programming

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

Current Time: Thu Oct 09 20:46:15 PDT 2025

Total time taken to generate the page: 0.64084 seconds