Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date ][Interchange by thread ]

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



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


_______________________________________________
Interchange-users mailing list
Interchange-users@lists.akopia.com
http://lists.akopia.com/mailman/listinfo/interchange-users


Search for: Match: Format: Sort by: