[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
Re: [ic] if statements that check who's logged in.
At 09:42 AM 2/2/01 +0100, you wrote:
>On 2 Feb, Cameron Germein wrote:
> > i've scanned throug the docs, and found that i can do this:
> >
> > [if value username =~ /^guest/i]
> > [include guestleft]
> > [else]
> > [include left]
> > [/else]
> > [/if]
> >
> > and it works. except for the fact that when i log out and the back in
> again,
> > it doesnt change the value in username, which causes the clause checking to
> > fail :) So i decided, i'd try it with data session username, as such:
> >
> > [if data session username =~ /^guest/i]
> > [include guestleft]
> > [else]
> > [include left]
> > [/else]
> > [/if]
> >
> > except that it doesnt work :) doing a [data session username] returns the
> > right value so like... what am i doing wrong here? :) surely people have
> > gotten this working before in an easy and straightforward manner - i
> assumed
> > what i found in the docs would work, but it turns out it doesnt do exactly
> > what i was planning... :)
>
I believe that should be [if session username =~ /whatever/]...[/if]
- Ed L.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
New Media E.M.S. Software Solutions for Business
463 Main St., Suite D edl@newmediaems.com
Placerville, CA 95667 http://www.newmediaems.com
(530) 622-9421 (530) 622-9426 Fax
(866) 519-4680 Toll-Free
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
_______________________________________________
Interchange-users mailing list
Interchange-users@lists.akopia.com
http://lists.akopia.com/mailman/listinfo/interchange-users