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

Home » Public Forums » archive » OR
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
OR [message #70732] Mon, 03 May 2010 14:55
fgg is currently offline  fgg
Messages: 67
Registered: April 2010
Member
Hello there,

How can I summarize these two lines in just one line of code?

if (line[0] eq 'i_rng_wf' and n_elements(line) ne 4002) then message,
$
'The # of samples per shot is not valid.'
if (line[0] eq 'i_rng_wf' and n_elements(line) ne 10882) then message,
$
'The # of samples per shot is not valid.'

...I thought using OR would do the trick, but I guess I'm missing
something here:

if (line[0] eq 'i_rng_wf' and n_elements(line) ne (4002 or 10882))
then message, ...

Thanks
[Message index]
 
Read Message
Previous Topic: Re: shifting individual pixels within an image
Next Topic: Evaluate a string as a variable name

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

Current Time: Wed Oct 08 17:36:10 PDT 2025

Total time taken to generate the page: 0.00381 seconds