let button = null; if (isLoggedIn) { button = ; } else { button = ; }