Zaxo's answer above is spot on. On a slightly different take, you may wish to use a hash to make your code a little clearer:
HTH# pick a better name -- I don't know what the data represents my %srhash = ( SRADDL => "SRC Addlf", SRSUPP => "SRC Supp", # and so on ); $ora = $srhash{$dtype} || $dtype;
In reply to Re: if/elsif statement troubles
by VSarkiss
in thread if/elsif statement troubles
by landonc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |