This is Guests example. just simply use this shortcode and show a welcome message for guest user, it will automatically hide after login.
Note: you can use this shortcode in article and custom module. for your help we give an example bellow
[guests]Content for guests...[/guests]