# Checking for spaces in textbox

**URL:** <https://forum.kirupa.com/t/checking-for-spaces-in-textbox/169416>\
**Category:** Uncategorized\
**Created:** [November 16, 2005, 5:17am UTC](https://forum.kirupa.com/t/checking-for-spaces-in-textbox/169416 "2005-11-16T05:17:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![superprg](https://avatars.discourse-cdn.com/v4/letter/s/858c86/32.png) [@superprg](https://forum.kirupa.com/u/superprg)\
**Post date:** [November 16, 2005, 5:17am UTC](https://forum.kirupa.com/t/checking-for-spaces-in-textbox/169416/1 "2005-11-16T05:17:36Z")

</div>

I am checking if user has not entered anything in the textbox

on(release)  
{  
if(input\_pname.text=="")  
{  
trace(“Nothing”);  
}  
}

Why this code is not working? ☹
