If session[:shopper] is not set, I want to change the page, but if the session[admin] != "true" I also want to change pages.
In other words,   if session[:shopper] or session[:admin] is set, display the page.
How can I deny the first statement of my if?
Here's my code so far:
<%if session[:shopper] %>  (this is what I want to deny)  
  <%puts "shopper IS NIL----------------------------------------------"%>
  <script type="text/javascript">
    window.location.href="/home"  
  </script>
<%elsif session[:admin] != "true"%>
<%puts "ADMIN is NIL----------------------------------------------"%>
  <script type="text/javascript">
    window.location.href="/home"  
  </script>
<%end%>
 
     
     
     
    