# Variable help

**URL:** https://forum.kirupa.com/t/variable-help/298997
**Category:** Uncategorized
**Created:** [October 28, 2009, 11:42am UTC](https://forum.kirupa.com/t/variable-help/298997 "2009-10-28T11:42:17Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![donkeykong](https://avatars.discourse-cdn.com/v4/letter/d/6f9a4e/32.png) [@donkeykong](https://forum.kirupa.com/u/donkeykong)
#### Post date: [October 28, 2009, 11:42am UTC](https://forum.kirupa.com/t/variable-help/298997/1 "2009-10-28T11:42:17Z")

</div>

Hi all

would any one beable to help me with this little minor change to a variable I have that reads in the number of emails?

At the moment it reads in the number of messages, what I would like to add is a word that appears and disappears depending on whether or not there is message!  
does this make any sense, I think its just a case of adding to the dynamic text field but not sure how, am a newbie and had a help with this script : )

so for example;

when there is no messages, there would be a word that simply says ‘Inbox’  
when there is messages the word ‘Inbox’ would be replaced with the number of messages.

aargghh!!

this is the script so far

```auto
 
 
trace("Variable using URL 'example.swf?EmailCount=" + myURLvariable_txt.text + "'");
myvariable_txt.text = EmailCount ;
trace("myvariable="+EmailCount );

```

thanks for any help!!
