  | |  | AW: [Flashcoders] Switch/Case vs If/else | AW: [Flashcoders] Switch/Case vs If/else
2004-02-11 - By FODOR
Back Not with else if, only with else. To do what you say you have to write it :
If(){
}else{
if(){}
}
Or put a break; when the if statement is true.
(11/02/04 16:43) Mees, Stefan wrote:
> > For a series of if/else if statements, every single if statement is
> evaluated. Even if the first condition is true, the Flash Player will check
> all of the other if conditions.
>
> i think this is not correct... if there firtst if condition is true - all
> other "else if " conditions are not checked!
>
>
> =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
> Supported by Fig Leaf Software
> =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
> Be sure to check the archives and the wiki:
> http://chattyfig.figleaf.com/
> =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
> http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:103802
> =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
> To unsubscribe send a blank e-mail to:
> Normal Mode: flashcoders-unsubscribe@(protected)
> Digest Mode: flashcoders-digest-unsubscrive@(protected)
>
-- ---- ---- ---- ---- ---- ---- ---- ----
Pascal FODOR
-- ---- ---- ---- ---- ---- ---- ---- ----
fodor@(protected) // flash@(protected)
******************************************
Visit: http://fodor.liane.net
Flash AV Players can be seen at:
http://fodor.liane.net/flash_AV_players/
******************************************
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Supported by Fig Leaf Software
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Be sure to check the archives and the wiki:
http://chattyfig.figleaf.com/
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:103809
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe send a blank e-mail to:
Normal Mode: flashcoders-unsubscribe@(protected)
Digest Mode: flashcoders-digest-unsubscrive@(protected)
|
|
 |