# If textbox empty goto

**URL:** <https://forum.kirupa.com/t/if-textbox-empty-goto/172060>\
**Category:** Uncategorized\
**Created:** [December 10, 2005, 5:48pm UTC](https://forum.kirupa.com/t/if-textbox-empty-goto/172060 "2005-12-10T17:48:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![afisette](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/afisette/32/1097_2.png) [@afisette](https://forum.kirupa.com/u/afisette)\
**Post date:** [December 10, 2005, 5:48pm UTC](https://forum.kirupa.com/t/if-textbox-empty-goto/172060/1 "2005-12-10T17:48:25Z")

</div>

i did a forum search since it’s quite an easy thing to do, but for some reason it doesn’t work.

I have this textbox ‘‘name’’ in a mc called ‘‘nmmc’’. so I ask the user to enter his name and the user must click the start button after.,but of course if he leaves it blank I want to do something else. (I can deal with the rest). but for some reason this code isn’t working

```auto
else if (_root.nmmc.name == "") {

```

I also tried

```auto

else if (_root.nmmc.name == '') {

```

but this is working.

```auto
else if (_root.nmmc.name == 'SUZY') {

```
