|
Posted by Simon Bridgewater on 07/09/05 00:40
Try using the switch statement.
Switch($var){
case 1: do something;break;
case 2: do something;break;
default: do whatever something else;break
}
The rest is up to you !!
"Wayne" <not@here.com> wrote in message
news:e5ptc15pq2o1ikflnjn9b6j84kecq35es5@4ax.com...
> On Fri, 08 Jul 2005 13:10:45 -0400, "Michael B. Trausch"
> <fdZEROman+spam@gmail.nospam.com> wrote:
>
> >The idea is that when something calls userId(), it should get to see
> >what type of user flags that are supported. Now I've moved things
> >around, and it seems like the only if that ever executes is the first
> >one, the code doesn't ever reach any of the elseif blocks.
>
> Umm yes, that's the point of *elseif*. If the first block executes,
> the other ones won't. Replace all your elseif's with regular if's and
> your code will work as indended!
>
[Back to original message]
|