Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:48
switch menu item
Poster: Maz
Dated: Wednesday January 14 2004 - 20:45:54 GMT
Help, I changed userIsMember, now i don't want an else item, what do I do now?
if( userIsMember){ aI("text=MEMBER AREA;showmenu=memberarea;status=member area;"); }
else{('');}
Thanks,
maz
Poster: John
Dated: Wednesday January 14 2004 - 22:13:02 GMT
I'll take one of my famous (or infamous) guesses... drop the else{('');}. If the result is false it should just drop through to the next item in your code (I think).
How you is, hon?
Poster: kevin3442
Dated: Wednesday January 14 2004 - 22:46:44 GMT
jgillett wrote:
I'll take one of my famous (or infamous) guesses...
Excellent guess John! It'll drop through to the next line of code whether the conditional is true or false; if it's true, it'll execute the aI() function then continue to the next line, if it's false, it'll skip the aI() function and continue to the next line.
Maz, you can also drop the curly braces if you like:
Code:
if(userIsMember) aI("text=MEMBER AREA;showmenu=memberarea;status=member area;");
should do it.
Cheers,
Kevin
Poster: Maz
Dated: Thursday January 15 2004 - 1:20:40 GMT
Good one John!


The sites going really well, I've been in US & UK time zones.
Might be time for a break, my birthday Saturday

Thanks for asking,
maz
Poster: John
Dated: Thursday January 15 2004 - 14:35:39 GMT
maz wrote:
The sites going really well, I've been in US & UK time zones.
Hey, good for you!
maz wrote:
Might be time for a break, my birthday Saturday
Congrats


As for a break, I agree. From all your posts here lately I know you've really been working hard on the site. Step back - have fun. You deserve it.
I'm coming up on 13 straight days (and nights) of working, and I'm pooped. We have Monday off, so that gives me a 4-day weekend. Me and the wolf are staying home and we're just going to waste the whole weekend - I can't wait
