sMALLQuestions
Programmer
Hi all.
can someone tell me shy this doesn't work? and to give me acode that will work.
I want the code to detect what the user had typed in the 'name' input text feild, but i want to detect more then just one word.
on (release) {
if (name == "swear1" || "swear2" || "swear3" {
trace ("swearword detected"
} else {
trace ("thanks"
}
}
whats wrong with:
"swear1" || "swear2" || "swear3"
please help me with the code.
Thanks a bunch, in advance!
can someone tell me shy this doesn't work? and to give me acode that will work.
I want the code to detect what the user had typed in the 'name' input text feild, but i want to detect more then just one word.
on (release) {
if (name == "swear1" || "swear2" || "swear3" {
trace ("swearword detected"
} else {
trace ("thanks"
}
}
whats wrong with:
"swear1" || "swear2" || "swear3"
please help me with the code.
Thanks a bunch, in advance!