# indexOf and Non-indexOf?

**URL:** <https://forum.kirupa.com/t/indexof-and-non-indexof/39128>\
**Category:** Uncategorized\
**Created:** [January 3, 2004, 8:46pm UTC](https://forum.kirupa.com/t/indexof-and-non-indexof/39128 "2004-01-03T20:46:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![REEF](https://avatars.discourse-cdn.com/v4/letter/r/ce73a5/32.png) [@REEF](https://forum.kirupa.com/u/REEF)\
**Post date:** [January 3, 2004, 8:46pm UTC](https://forum.kirupa.com/t/indexof-and-non-indexof/39128/1 "2004-01-03T20:46:52Z")

</div>

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:

```auto
on (release) {
if (myFlashPeople.text.indexOf("Kirupa")) {
nextFrame;
}

```

- 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:.
