Skip to main content
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
I'm trying to load a stylesheet if Menu(2) doesn't exist:
<% if (!isset(Menu(2))) %>
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="themes/pmb/css/ie7-menu-2-fix.css" />
<% end_if %>
However that code obviously isn't right and I can't figure it out. I'm sure its extremely easy but anyone have a tip? My Googling has failed.
In SS templates you can simply do the following. isset() is a PHP function
<% if Menu(2) %>
<% else %>
Ahh it was super easy. Cheers Will, that completes the website!