{title} {heading}
{content}
{title} {heading}
In this example, we are using an `{if}` statement to display different content depending on whether the user is logged in or not. PHP XTemplate is a part of the Xajax library.{title} {if $is_logged_in}Welcome back, {username}!
{else}Please log in to view this page.
{/if}