[flexcoders] Short-circuiting logical operators in AS3?

2007-04-12 Thread jandersen1978
I'm fairly new to AS3 coming from a javascript background. I noticed that I get an error when running the if statement below because dataProvider[i].data doesn't exist. if ( true || val == dataProvider[i].data) { selectedIndex = i; return; } In javascript the double OR

RE: [flexcoders] Short-circuiting logical operators in AS3?

2007-04-12 Thread Alex Harui
I know it works for From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of jandersen1978 Sent: Wednesday, April 11, 2007 8:58 PM To: [EMAIL PROTECTED] Subject: [flexcoders] Short-circuiting logical operators in AS3? I'm fairly new to AS3 coming from

Re: [flexcoders] Short-circuiting logical operators in AS3?

2007-04-12 Thread Troy Gilbert
PROTECTED] *On Behalf Of *jandersen1978 *Sent:* Wednesday, April 11, 2007 8:58 PM *To:* [EMAIL PROTECTED] *Subject:* [flexcoders] Short-circuiting logical operators in AS3? I'm fairly new to AS3 coming from a javascript background. I noticed that I get an error when running the if statement below

RE: [flexcoders] Short-circuiting logical operators in AS3?

2007-04-12 Thread Gordon Smith
: [flexcoders] Short-circuiting logical operators in AS3? Yeah, it definitely works for , I depend on it all the time. Not sure if I've specifically tried it with || though... Troy. On 12 Apr 2007 09:43:36 -0700, Alex Harui [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote