# Syntax question

**URL:** <https://forum.kirupa.com/t/syntax-question/418>\
**Category:** flash\
**Created:** [July 17, 2002, 12:46am UTC](https://forum.kirupa.com/t/syntax-question/418 "2002-07-17T00:46:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ryall](https://avatars.discourse-cdn.com/v4/letter/r/53a042/32.png) [@Ryall](https://forum.kirupa.com/u/Ryall)\
**Post date:** [July 17, 2002, 12:46am UTC](https://forum.kirupa.com/t/syntax-question/418/1 "2002-07-17T00:46:51Z")

</div>

I am having trouble with a dynamic text field… I want the field to display some text along with a changing variable. Something like this - “blah blah var\_something blah blah blah”. I have the text field set to display a different variable that contains var\_somehting and the text I want. However I cannot get it to display properly.

Example of what I am doing:

var\_something = (\_root.something/x)  
var\_text = “You have var\_something things!”

Then my dynamic text box is set to display var\_text.

What is the syntax for displaying both the text I want AND the value of var\_something???  
Thanks

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 17, 2002, 2:22am UTC](https://forum.kirupa.com/t/syntax-question/418/2 "2002-07-17T02:22:01Z")

</div>

The problem is in this line of code:

var\_text = “You have var\_something things!”

It has to be like this:

var\_text = “You have”+var\_something+“things”

Beacause var\_something is an expression so it cannot be contained inside the quotation marks. Hope that helps. Good Luck.

Peace  
nemo | Bejingler

🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 17, 2002, 7:42am UTC](https://forum.kirupa.com/t/syntax-question/418/3 "2002-07-17T07:42:37Z")

</div>

Thanks a lot… problem solved!
