Else statement is not working in HTML view

Else statement is not working in HTML view

I cannot seem to get the else statement to work in this view. The if statement works fine, just not the else.

Thanks for the help.


htmlpage Approval_Form(pAccountKey, pOrderKey)
displayname = "Approval Form"
content
<%{
    account  =  Accounts  [ID == (input.pAccountKey).toLong()];
    order  =  Orders  [ID == input.pOrderKey.toLong()];
    services  =  Order_Service_Charges  [Order_Key == order.ID];
    billing  =  Billing_To  [Order_Key == order.ID];
    shipments  =  Shipments  [Order_Key == order.ID];
    if ((shipments.ID  !=  null)  ||  (shipments.ID  <=  0))
    {%>
<style type="text/css">
<!--
.disclamer {
    font-size: xx-small;
}
.Layout {
    font-family: "Times New Roman", Times, serif;
    font-size: small;
    padding: 1%;
}
.MainText {
    font-size: x-small;
}
.details {
    font-size: small;
    color: #09F;
}
.WARNING {
    font-weight: bolder;
    text-transform: capitalize;
    color: #F00;
}
-->
</style>
<div class="Layout">
  <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td colspan="2" align="center" valign="middle" class="WARNING">NO CHANGES CAN BE MADE AFTER APPROVAL - READ ALL INFORMATION THOROUGHLY<BR><BR></td>
        </tr>
      <tr>
        <td width="45%" align="left" valign="top"><strong>Grandstand Inc</strong><br>
          <span class="MainText">1753 E Broadway<br>
Suite 101-295<br>
Tempe, AZ 85282<br>
Phone 1-800-481-4948 Fax 1-480-393-4520<br>
sales@grandstandstore.com</span></td>
        <td align="right" valign="bottom"><strong>ORDER #<%=order.Order_Number%> PRINT APPROVAL FORM</strong><br>
          <table width="100%" border="0" align="right" cellpadding="0" cellspacing="0" class="MainText">
          <tr>
            <td align="right">Date : </td>
            <td align="right"><%=zoho.currenttime%></td>
          </tr>
          <tr>
            <td align="right">Sales Rep : </td>
            <td align="right"><%=order.Rep%></td>
          </tr>
          <tr>
            <td align="right">Reference : </td>
            <td align="right"><%=order.Reference%></td>
          </tr>
          <tr>
            <td align="right">Reference City, State : </td>
            <td align="right"><%=order.Reference_City%>, <%=order.Reference_State_Provance%></td>
          </tr>
          <tr>
            <td align="right">*Target Delivery Date :</td>
            <td align="right"><%=(order.Target_Delivery_Date).toDate()%></td>
          </tr>
          <tr>
            <td colspan="2" align="right"><span class="disclamer">*This is not a guarenteed delivery date</span></td>
          </tr>
        </table></td>
      </tr>
      </table></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td><hr></td>
  </tr>
  <tr>
    <td>The information given below and the proof sheets that accompany this form are for: <%=order.Primary_Order_Contact%></td>
  </tr>
  <tr>
    <td class="MainText"><p><em>For the protection of both parties, we ask that you carefully examine all documents sent to you (Proof Sheets, Design Forms, Manifests, Etc.) Although we regret any mistakes that may go undetected, we cannot be held responsible if work is printed as per customer's approval. Any questions must be marked BOLDLY on that document and faxed or emailed back. Please confirm with us we have received these changes. Remember this is a legally binding document and must be signed, dated and faxed back or approved online before we will schedule your order for a print date and time.</em></p>
      <p><em>Please check the following information and the accompanying design proof sheets for quantities as well as layout, content, spelling, numbering information and sizes.</em><br>
    </p></td>
  </tr>
  <tr>
    <td><hr></td>
  </tr>
  <tr>
    <td><strong>SHIPPING DETAILS</strong><br></td>
  </tr>
  <tr>
    <td>        <%for each shipment in Shipments  [Order_Key == order.ID]
        {%>
      
      <table width="90%" border="0" cellpadding="0" cellspacing="0" class="details">
        <tr>
          <td>Ghost Ship :</td>
          <td><%=shipment.Ghost_Ship%></td>
          </tr>
        <tr>
          <td>Shipped To :</td>
          <td><%=shipment.Ship_To_Address%></td>
          </tr>
        <tr>
        <tr>
          <td width="30%">Attn :</td>
          <td><%=shipment.Account_Contact%> <%=shipment.Attn%></td>
          </tr>
        <tr>
          <td>Shipped Via :</td>
          <td><%=shipment.Courier%> - <%=shipment.Method%></td>
          </tr>
          <td>Upgraded Shipping Charge :</td>
          <td>$<%=shipment.Upgraded_Shipping_Charge%></td>
          </tr>
        <tr>
          <td>Notes :</td>
          <td><em><%=shipment.Published_Notes%></em></td>
          </tr>
        </table>
                                                                                                              <%}%>
  &nbsp;</td>
  </tr>
  <tr>
    <td><hr></td>
  </tr>
  <tr>
    <td><strong>PRODUCT INCLUDED WITH THIS ORDER</strong></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>        <%for each product in Order_Products  [Order_Key == order.ID]
        {%>
      <table width="90%" border="0" cellpadding="0" cellspacing="0" class="details">
        <tr>
          <td width="30%"><strong><%=product.Product_Name%></strong></td>
          <td>Width : <%=product.Width%> | Height : <%=product.Height%> | Printed on : <%=product.Stock_Type%> <%=product.Special_Stock_Detail%><br>UV Coating : <%=product.UV_coat%> | Tagline : <%=product.Tagline%></td>
        </tr>
        <tr>
          <td rowspan="3">&nbsp;</td>
          <td>Finishing Options : <%=product.Finishing_Options%></td>
        </tr>
        <tr>
          <td>Total Qty: <%=thisapp.TotalProductQty(product.ID)%></td>
        </tr>
        <tr>
          <td>Total Price: $<%=thisapp.Total_Designs(product.ID)%></td>
        </tr>
      </table>
      <br>                                                                                                                    <%}%>
</td>
  </tr>
  <tr>
    <td><hr></td>
  </tr>
  <tr>
    <td align="center"><strong>PLEASE APPROVE ONLINE OR SIGN BELOW AND FAX TO 1-480-393-4520<BR>
      IF ALL INFORMATION ON THIS SHEET AND THE ACCOMPANYING DESIGN PROOF SHEETS ARE CORRECT.</strong></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td><span class="disclamer">The signor agrees that a facsimile signature and/or a logged I.P. address online approval is legally binding. By approving you agree to the terms listed below and certify this agreement in whole as well as the accompanying design proof sheets are ready for production.</span><br><BR>
      <span class="MainText">1) All proof sheets with changes have been faxed or emailed to Grandstand Inc with clearly indicated changes and a staff member has confirmed their reception. You authorizes Grandstand Inc to make these changes and proceed with this order.<br>
      2) You assumes financial responsibility for the invoice amount indicated on this document.<br>
    3) You acknowledge all designs not sent in for revisions are correct and ready for production.<br>
4) You confirm that you have the legal right to reproduce all included designs, logos, and/or images provided by you. Please note if you are reproducing copyrighted work you need written consent.</span><br></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td align="center"><img src="http://www.grandstandstore.com/images/logo.png" alt="" name="Logo" width="350" height="88"><br>
          <strong>1-800-481-4948</strong></td>
        <td><table width="100%" border="0" align="right" cellpadding="0" cellspacing="0">
          <tr>
            <td align="right">Product Total :</td>
            <td align="right">$<%=thisapp.TotalProducts(order.ID)%></td>
          </tr>
          <tr>
            <td align="right">Service Total :</td>
            <td align="right">$<%=thisapp.TotalServices(order.ID)%></td>
          </tr>
          <tr>
            <td align="right">Upgraged Shipping :</td>
            <td align="right">$<%=thisapp.TotalShipping(order.ID)%></td>
          </tr>
          <tr>
            <td align="right">Credit / Debits :</td>
            <td align="right">$<%=order.Credits_Debits_Applied%></td>
          </tr>
          <tr>
            <td align="right">&nbsp;</td>
            <td align="right">&nbsp;</td>
          </tr>
          <tr>
            <td align="right">Order Total :</td>
            <td align="right"><strong>$<%=thisapp.TotalOrder(order.ID)%></strong></td>
          </tr>
          </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td align="center"><p>&nbsp;</p></td>
  </tr>
  <tr>
    <td align="center">If you will be faxing your approvals please sign and date X________________________________ Date:________________</td>
  </tr>
  </table>
</div>            <%}
    else
    {%>
<table width="100%" border="0" align="center" cellpadding="1" cellspacing="1">
    <tbody>
        <tr>
            <td style="text-align: center; "><span style="font-size: large; "><span style="color: rgb(255, 0, 0); "><strong>SHIPPING INFORMATION MUST BE COMPLETED BEFORE GENERATING THIS FORM</strong></span></span></td>
        </tr>
    </tbody>
</table>            <%}
}%>