indexOf and Non-indexOf?

Hey people. I’m too lazy to search, but how would I use the indexOf action for a button and a dynamic text box? Would this work:

on (release) {
if (myFlashPeople.text.indexOf("Kirupa")) {
  • Ok I see that there is an “indexOf” that searches for a string, but how can I use a code that searches if there is NOT a string? So like if someone types in their e-mail address and it does NOT contain the string “@” that means it’s not a real address.
  • Thanks :bu:.