[Mono-list] [Off-topic] "if else" or "switch" ?

Fabien Meghazi agr@amigrave.com
Fri, 15 Oct 2004 17:40:45 +0200


> Fabien Meghazi schrieb:
> 
> Method 3 :)
> 
>   left = or == 'l';
>   top = or == 't';

I can't use this because I iterate chars of the string in a foreach.
If the string is two char long, the second iteration will cancel the
effect of the first one.