<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">On 06/25/2013 11:55 AM, Paul Jordan
      wrote:<br>
    </div>
    <blockquote
      cite="mid:BAY405-EAS3064F3AA5A5DDC91A45D568D68B0@phx.gbl"
      type="cite">
      <pre wrap="">[calcn]
         my $big=0;
         foreach my $item (@$Items) {
                 if ($item->{width} >= 160) {
                         # We have to use the largest shipping available, no
need to check anymore
                        return 2;
                } elsif ($item->{width} >= 108) {
                         # We have to use base truck shipping
                          $big = 1;
                }
        }
        return $big;
 [/calcn]
 EOC
         min     1
         max    1
         cost    85
 
         min     2
         max    2
         cost    170

         min     3
         max    3
         cost    200.00
</pre>
    </blockquote>
    After several tests with different combinations, this looks like it
    solves this problem.<br>
    Not sure why it did not work with elseif, but time to go to the next
    project.<br>
    <br>
    Thanks for the help.<br>
    <br>
    <meta http-equiv="content-type" content="text/html;
      charset=ISO-8859-1">
    <pre style="color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; white-space: pre-wrap;">truckbig:       Truck Shipping
        criteria <<EOC
[calcn]
         my $big=0;
         foreach my $item (@$Items) {
                if ($item->{width} >= 160) {
                        # We have to use  largest shipping
                        return 2;
               }
        
               if ($item->{width} >= 108) {
                        # We have to use base truck shipping 
                         $big = 1;                
               }
       }
       return $big;
[/calcn]
EOC
        min     1
        max     1
        cost    85.00

        min    2
        max    2
        cost   170.00

        min     3
        max     3
        cost    200.00</pre>
    <br>
  </body>
</html>