Q:

conditional php help

How can I wrap this entire statement below in a condition? So If the variable $uprice = 0 then I don't want to to display any of the code below
   <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item-  >getWeeeTaxAppliedAmount()): ?>

   <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?>

  <?php else: ?>
  <?php echo $this->helper('checkout')->formatPrice($_item-    >getCalculationPrice()) ?>
  <?php endif; ?>

A:

This??
<?php if ($uprice === 0): ?>    
     <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item-  >getWeeeTaxAppliedAmount()): ?>    
     <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?>    
     <?php else: ?>
     <?php echo $this->helper('checkout')->formatPrice($_item-    >getCalculationPrice()) ?>
     <?php endif; ?>
<?php endif; ?>

