[flexcoders] AS3 function returning true when it only can be false

2008-07-14 Thread Scott
This is weird... I'm linking to a coldfusion component I'm creating. For the sake of playing around a bit, I created the variable rc The following AS3 function queries the CF server to see if the user is logged in or not; returns true for yes, false for no public

Re: [flexcoders] AS3 function returning true when it only can be false

2008-07-14 Thread Ralf Bokelberg
It appears to me, that your Coldfusion script returns a string instead of a boolean. Every string with a length 0 evaluates to true in a boolean expression. Cheers Ralf. On Mon, Jul 14, 2008 at 4:05 PM, Scott [EMAIL PROTECTED] wrote: This is weird… I'm linking to a coldfusion component I'm

RE: [flexcoders] AS3 function returning true when it only can be false

2008-07-14 Thread Scott
: [flexcoders] AS3 function returning true when it only can be false It appears to me, that your Coldfusion script returns a string instead of a boolean. Every string with a length 0 evaluates to true in a boolean expression. Cheers Ralf. On Mon, Jul 14, 2008 at 4:05 PM, Scott [EMAIL PROTECTED] wrote

Re: [flexcoders] AS3 function returning true when it only can be false

2008-07-14 Thread Ralf Bokelberg
=boolean -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ralf Bokelberg Sent: Monday, July 14, 2008 8:58 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] AS3 function returning true when it only can be false It appears to me

Re: [flexcoders] AS3 function returning true when it only can be false

2008-07-14 Thread Scott
: Monday, July 14, 2008 8:58 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: Re: [flexcoders] AS3 function returning true when it only can be false It appears to me, that your Coldfusion script returns a string instead of a boolean. Every string with a length 0