[ic] if statements that check who's logged in.

Cameron Germein cameron.germein@team.eftel.com
Fri, 2 Feb 2001 13:57:37 +0800


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... :)