Forum:Alternative text for logged out users

Is there a way to get a page to display different text to logged out users than to logged in users? For example, a logged in user would see:

General text section Text section A General text section

and a logged out user would see:

General text section Text section B General text section

Thanks, Enodoc (Talk ) 18:16, December 23, 2011 (UTC)