I have an Expresso:Store site and I am using the following conditionals in the header:
{exp:store:cart}
{if no_items}
<a href="{path='store/checkout'}">Your bag is empty</a>
<div class="details">
{if logged_in}
<br /><a href="{path='store/my_orders'}">My Orders</a>
<!-- template parsing fails -->
{if:else}
<br /><a href="{path='account/login'}">Login</a>
{/if}
</div>
{/if}
<a href="{path='store/checkout'}">My Shopping Bag ({order_qty})</a>
<div class="details">
<span class="price">{order_subtotal}</span><a href="{path='store/checkout'}">Checkout</a>
{if logged_in}
<br /><a href="{path='store/my_orders'}">My Orders</a>
{if:else}
<br /><a href="{path='account/login'}">Login</a>
{/if}
</div>
{/exp:store:cart}
When I am logged in, the template parses fine and everything works.
If I am NOT logged in, the template parses up to the commented line and the header template fails to output anything after that line, breaking the remaining page layout.
It's as if it just stops after that line, but I can't work out what I have done wrong, there are no template errors I can see in the EE template editor.