I am trying to show a link as a dropdown if it corresponds to the parent category. I checked the values and they are coming in correct but for some reason the if condition isn't returning true. This line is the issue: if(link.id == subLink.category).
ul.nav.navbar-nav.navbar-left
each link in navLinks
if(link.dropdown)
li(class=(section == link.key ? 'active dropdown' : 'dropdown'))
a(class=('dropdown-toggle'), href=('#{link.href}'), data-toggle=('dropdown'))= link.label
ul(class=('dropdown-menu'), role=('menu'), aria-labelledby=('dropdownMenu'))
each subLink in navSublinks
if(link.id == subLink.category)
li
a(href='#{subLink.url}')= subLink.category
else
// not a dropdown