# Field contains @

**URL:** <https://forum.kirupa.com/t/field-contains/174632>\
**Category:** Uncategorized\
**Created:** [January 7, 2006, 2:59pm UTC](https://forum.kirupa.com/t/field-contains/174632 "2006-01-07T14:59:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Snake\_NL](https://avatars.discourse-cdn.com/v4/letter/s/a5b964/32.png) [@Snake\_NL](https://forum.kirupa.com/u/Snake_NL)\
**Post date:** [January 7, 2006, 2:59pm UTC](https://forum.kirupa.com/t/field-contains/174632/1 "2006-01-07T14:59:07Z")

</div>

hi,

Does anybody know how i can do this:

I have a inputfield named : email  
When that field is empty you get a error that says to fill in your email. that works. But now i want it checks the inputfield if it contains a “@”

i have now this AS:

```auto
on (release) {
    if (email == "@") {
        gotoAndStop("end");
    } else {
        var o = schoen_mc.attachMovie("error-mail", "error-mail", 7);
        o._x = 590.0;
        o._y = 240.0;
    }
}

```

but that doesn’t work. ☹ or do i need another symbool instead of ==
