[thelist] Perl If, Elsif Statements
Anthony Baratta
anthony at baratta.com
Sun Feb 22 22:49:10 CST 2004
Your going to have to be a little more clear about what you want and are
trying to do.
Regarding just the criteria for selecting/showing data, just run it through
a chain of if's, appending the data as you go:
if ($viewOne eq "1") {
$ShowData =. $DataOne;
}
if ($viewTwo eq "1") {
$ShowData =. $DataTwo;
}
if ($viewThree eq "1") {
$ShowData =. $DataThree;
}
print $ShowData;
---
Anthony Baratta
President
Keyboard Jockeys
"Conformity is the refuge of the unimaginative."
More information about the thelist
mailing list