Only Display when logged in to Admin group. 8.5.7

The code I am using only shows when you’re logged in, but I only want to see it, so is there a way to only display results when logged in as Admin?

$u = new User();
echo ($u->isLoggedIn() ? '<div style="padding:0 0 0 10px">#' . $i . '</div>' : '') ;

The method you asked about
$u->isSuperUser()

However, depending on the wider context, it may be more appropriate to test for being a member of the Admin group, or check for permission.

That worked perfectly, didn’t at first, till I realized SuperUser is ID #1. Just changed accounts and perfection!
Thank you very much!