I've started a program where the user keys in the six winning weekly lottery numbers
and tests them for a match with their numbers (same each week). As indicated below,
my first statement tests for a match of all six (jackpot) and the second statement
tests for no matches at all. I don't know how to continue, or if this the best
way to start. There is a second, third and fourth prize for 5, 4, and 3 prizes respectively.
// test for a jackpot
on (release) {
if (a == 09 && b == 13 && c == 17 && d == 26 && e == 37 && f == 40) {
gotoAndStop ("jackpot"
}
}
// test for no numbers at all
on (release) {
if (a != 09 && b != 13 && c != 17 && d != 26 && e != 37 && f != 40) {
gotoAndStop ("zilch"
}
}
and tests them for a match with their numbers (same each week). As indicated below,
my first statement tests for a match of all six (jackpot) and the second statement
tests for no matches at all. I don't know how to continue, or if this the best
way to start. There is a second, third and fourth prize for 5, 4, and 3 prizes respectively.
// test for a jackpot
on (release) {
if (a == 09 && b == 13 && c == 17 && d == 26 && e == 37 && f == 40) {
gotoAndStop ("jackpot"
}
}
// test for no numbers at all
on (release) {
if (a != 09 && b != 13 && c != 17 && d != 26 && e != 37 && f != 40) {
gotoAndStop ("zilch"
}
}