<% # Here's a little Tcl "if statement" so that we can give them # a different welcome message depending on whether they're # logged on. If you edit the text, please remember to put # a backslash before any embedded quotation marks (\") you add. if { $user_is_logged_on } { set welcome_message "Welcome back $user_name! If you're not $user_name, click here." } else { set welcome_message "Welcome!" } # and another statement which depends on whether gift certificates # can be bought on this site (remember to put a backslash before any # embedded quotation marks (\") you add.) if { $gift_certificates_are_allowed } { set gift_certificate_message "Order a Gift Certificate!" } else { set gift_certificate_message "" } # We're done with the Tcl. %> <%= $welcome_message %> <%= $search_widget %><%= $recommendations_if_there_are_any %> <%= $products %> <%= $prev_link %> <%= $separator %> <%= $next_link %>
<%= $gift_certificate_message %>