Good suggestions, guys, but I was purposefully using a string operator
to be very specific in the code.  (The '==' didn't work, either)

This is working... using 3 statements and avoid the use of the or '||'
operator.

Thanks!

Rick

-----Original Message-----
From: Justin Scott [mailto:leviat...@darktech.org] 
Sent: Tuesday, October 04, 2011 10:37 PM
To: cf-talk
Subject: Re: Shouldn't these statements work?


> if  (  activeLinkID === 'search_properties' ...

Hi Rick, remember that in JavaScript the === operator checks for value
AND variable type, so if the internal variable types aren't the same
then it will evaluate to false even if the string values match.  You
might consider changing that to a value comparison as == rather than
the value and type comparison.


-Just



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347930
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to