Go back and look at your logic. To put in simpler numbers, here is what you have:
if a <= 3 or a >= 5 then ... elseif a >= 3 and a <= 5 then ... endif The only way that the else condition will occur is if "a" is 4. So, there's no need to check for that condition because you know that it will be true. Also, watch the use of "=" within your checks. Your checks are overlapping. In the above case, the else will NOT get executed if "a" is 3 or 5. ...Glenn P.S., yes, there are whole college courses on mathematical logic!! :) On Thu, Nov 6, 2008 at 7:59 PM, Gotrek65 <[EMAIL PROTECTED]> wrote: > > 1st > I remember why I had to do the If Elseif Endif. It's because the Else > can't handle more than 1 statement so I had to use the Elseif to make > sure the $cargo is within $cargohigh and $cargolow. >
