# Problem with basics

**URL:** <https://forum.kirupa.com/t/problem-with-basics/176651>\
**Category:** Uncategorized\
**Created:** [January 25, 2006, 8:13pm UTC](https://forum.kirupa.com/t/problem-with-basics/176651 "2006-01-25T20:13:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![adityadubey](https://avatars.discourse-cdn.com/v4/letter/a/f17d59/32.png) [@adityadubey](https://forum.kirupa.com/u/adityadubey)\
**Post date:** [January 25, 2006, 8:13pm UTC](https://forum.kirupa.com/t/problem-with-basics/176651/1 "2006-01-25T20:13:04Z")

</div>

hi! I am trying to validate for empty input text field on a button click. Can someone tell me what’s wrong with this code:

mytext is a variable  
inputvalue is variable name for the input text field

on (release) {  
\_root.mytext = \_root.inputvalue;  
if(\_root.inputvalue == “”) {  
gotoAndPlay(“errormsg”)  
}  
}

Is there a problem with the double quotes?
