{namespace pw=PwCommentsTeam\PwComments\ViewHelpers}

{f:if(condition: '{comment.authorPseudo}', then: '{comment.authorPseudo}', else: '{comment.authorName}')}

{comment.message -> f:format.nl2br() -> f:format.raw()}