$
$
         if {[info exists login]} {
           puts "Logged in as $login"
         } else {
           puts "Not logged in"
         }
html "Home\n" if {[anycap jor]} { html "Timeline\n" } if {[anoncap oh]} { html "Files\n" } if {[anoncap o]} { html "Branches\n" html "Tags\n" } if {[anoncap r]} { html "Tickets\n" } if {[anoncap j]} { html "Wiki\n" } if {[hascap s]} { html "Admin\n" } elseif {[hascap a]} { html "Users\n" } if {[info exists login]} { html "Logout\n" } else { html "Login\n" }