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

Home » Public Forums » archive » Logical operators
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: Logical operators [message #93868 is a reply to message #93867] Sun, 13 November 2016 07:40 Go to previous messageGo to previous message
Jim  Pendleton is currently offline  Jim Pendleton
Messages: 165
Registered: November 2011
Senior Member
On Sunday, November 13, 2016 at 7:30:50 AM UTC-7, Glan wrote:
> Hi
> I am trying to do
> if( ( (a gt 50) and ( b lt 50) ) or ((a lt 50) and ( b gt 50)) then begin
> c=! NANQ
>
> ...but the multiplie logical operator not working.
> Can you help
> GlanPlon

You don't say what "not working" means, but my first guess is that the variables a and b are not both scalars. You may need to re-cast your problem using a vector operation, a WHERE or a loop.

Jim P
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL Bridge Failing When >52 Bridges are Built (IDL6.4)
Next Topic: Conversion of MS 64bit timestamps to JD

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

Current Time: Wed Oct 08 13:59:53 PDT 2025

Total time taken to generate the page: 0.00404 seconds