frozenpeas
Technical User
I am working in Flash 5.
I have an input field with the variable name of "one". The user enters his/her answer in the field then presses an Enter button which contains:
This works fine.
What I want to do is allow for uppercase, lowercase, first letter caps. (MEATBALL, meatball, Meatball)
I have tried this but all three answers come up as incorrect:
Thanks for your help.
I have an input field with the variable name of "one". The user enters his/her answer in the field then presses an Enter button which contains:
Code:
on (release, keyPress "<Enter>") {
if (one eq "meatball") {
trace ("correct");
} else {
trace ("incorrect");
}
}
This works fine.
What I want to do is allow for uppercase, lowercase, first letter caps. (MEATBALL, meatball, Meatball)
I have tried this but all three answers come up as incorrect:
Code:
on (release, keyPress "<Enter>") {
if (one eq ["meatball" | "Meatball" | "MEATBALL"]) {
trace ("correct");
} else {
trace ("incorrect");
}
}
Thanks for your help.