I have several answers here that work for this part of my question....opened DNN just a little more for me and hopefully for you.
The DNN ascx if/else() statements look like this:
<% if (singleConditionExample) { %>
Hello World");
<% } else if (multipleConditionsHere() || multipleConditionsHere() && multipleConditionsHere()) { %> // standard operators. you get the idea.
elseifConditionsHere");
<% } else { %>
Else Msg");
<% } %>
As for getting DNN page tabId, tabName, ParentId, these went into the if() conditions.
//CURRENT PAGE ROOT PARENT FROM DNN BREADCRUB
PortalSettings.ActiveTab.BreadCrumbs[0]
//CURRENT DNN PAGE NAME
PortalSettings.ActiveTab.TabName.Equals("Wealth Management")
//CURRENT DNN PAGE PARENT ID
DotNetNuke.Entities.Portals.PortalController.GetCurrentPortalSettings().ActiveTab.ParentId.Equals(480)
If you want to write them to the page:
<%=PortalSettings.ActiveTab.BreadCrumbs(0).FullUrl%>
I'm certain there is more to learn and when I do learn more, as it relates to getting DNN page id, breadbrumbs, etc...i will update this answer.
Cheers!