Dynamic account name and normal text for not logged in user

Hello

I’ve read this link, but I could not solve my problem.
Getting Details of the Logged In User and Binding them to your page

I would like to show “account name” from database when the user logged in, and also “GUEST” when the user is not logged in.

Show/hide doesn’t seem to work for this case. how can I solve this?

Thanks,

Community Page
Last updated: