I am simply trying to add conditional Woocommerce login links to a widget area. I need help identifying my code issues. I would like it to Welcome the user in the initial conditional statement but didn't get that far.
<div class="account_links">
<?php if ( is_user_logged_in() ) {
echo <a href="/my-account/" title="My Account Page">MY ACCOUNT</a>
<span> | </span>
<a href="/my-account/customer-logout/">LOGOUT</a>}
else {
echo <a href="/my-account/" title="Login Page">LOGIN</a>
<span> | </span>
<a href="/my-account" title="Create an Account">REGISTER</a>
<?php endif; ?>
</div>