pleae help with conditional statements
Milan Sorm
xsorm na informatics.muni.cz
Úterý Prosinec 22 15:37:23 MET 1998
Tue, Dec 22, 1998 ve 10:14:05AM +0100 amy napsal:
> I'm trying to process some html form data. I have a test of 9 questions
> (radio buttons) and each question has a rank of 1-5. So my scores range
> from 9-45. I am having trouble with the conditional statement. I have five
> possible answers. I would like my statement to read
> if ($sum_of_test_score = 1 or 2 or 3 or 4
> ...9){
> conditon #1
> } elsif ($sum_of_test_score = 10 or 11 or
> 12...){
> conditon #2
> }
correct use:
if ($sum_of_test_score == 1 or $sum_of_test_score == 2 or ...) {
condition #1
} elsif ($sum_of_test_score == 10 or $sum_of_...
ok ?
m.s.
> and so on and so on until my five different outcomes were accounted for in
> the if statement.
> I have not been able to determine what the proper syntax would be. I have
> tried almost everything I could think of. Please help?
> Markus
> asibal na paclink.com
>
>
-------------------------------------------------------------
Milan Šorm (aka John Popelník) telefon: +420 5 41512348
B205, FI MU, Botanická 68a, Brno sorm na informatics.muni.cz
http://www.fi.muni.cz/~sorm/ tel. domů: (05) 46211083
-------------------------------------------------------------
Linux is like a wigwam - no windows, no gates, apache inside!
Další informace o konferenci Perl