in reply to Elsif Clause Problem
I suggest structuring your if/elsif/else structure differently, to reflect that there are nested conditions, and this will make the code a little more readable. Using numerical operators will help. Beware of use of > when >= may be needed.
if ($downpercent == 20) { $totalpmt = $retioincome33 > $retiodebt38 ? $ratiodebt38 : $ratioinc +ome33; } else { $totalpmt = $ratioincom28 > $ratiodebt36 ? $ratiodebt36 : $ratioinco +me28; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Elsif Clause Problem
by b310 (Scribe) on May 10, 2004 at 17:46 UTC |