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

Home » Public Forums » archive » Mulitple conditionals
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Mulitple conditionals [message #64975] Sat, 07 February 2009 03:32
Bernhard Reinhardt is currently offline  Bernhard Reinhardt
Messages: 26
Registered: October 2008
Junior Member
Hi,

I guess I can not shock you IDL old stagers with this but for an IDL
newbee like me this seems quite strange:

IDL> if 1 eq (1 or 2) then print, "true" else print, "false"
false
IDL> if "a" eq ("a" or "b") then print, "true" else print, "false"
true

Maybe thats the IDL-way of punishing people to addle to type the long
version:

IDL> if ("a" eq "a" or "a" eq "b") then print, "true" else print,"false"
true
IDL> if (1 eq 1 or 1 eq 2) then print, "true" else print, "false"
true

Can anyone explain the logic behind this behavoir to me?

Regards

Bernhard
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Unlimited Wii Downloads! Wii Games, Wii Music & Much More!
Next Topic: Re: Mulitple conditionals

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

Current Time: Fri Oct 10 03:18:44 PDT 2025

Total time taken to generate the page: 0.39938 seconds