in reply to Re^2: Adding numbers from a loop
in thread Adding numbers from a loop
if ($total eq "3") { $revenue = 30; } elsif ($total eq "6") { $revenue = 48; } elsif ($total eq "10") { $revenue = 50; }
Hmmm .... on some reflection, replacing "elsif" with "if" (as I have done), doesn't really achieve anything.if ($total eq "3") { $revenue += 30; } if ($total eq "6") { $revenue += 48; } if ($total eq "10") { $revenue += 50; }
|
|---|