Edit
If anyone could enlighten me of what you call if statements like those would be great! Thanks!
Quick question about "short" if statements (not sure what you call them),
I have
<%= (LeadsUser.IsAdministrator || LeadsUser.IsEditor || LeadsUser.IsSubsidiarie) ? "Currently logged in as: " : "" %>
<%= LeadsUser.IsSubsidiarie ? "Lead admin" : "" %>
<%= LeadsUser.IsAdministrator ? "Lead editor" : "" %>
<%= LeadsUser.IsEditor ? "Lead user" : "" %>
I know this is against DRY. I'm wondering can I combine those? Because some users are in multiple groups. I'd want it to say "Currnetly logged in as: Lead admin, lead editor", so depending on if LeadsUser.IsSubsidiarie is true aswell as IsAdministrator write ", lead editor" instead of "Lead editor".