# Syntax-problem (Basic stuff)

**URL:** <https://forum.kirupa.com/t/syntax-problem-basic-stuff/166886>\
**Category:** flash\
**Created:** [October 23, 2005, 6:27pm UTC](https://forum.kirupa.com/t/syntax-problem-basic-stuff/166886 "2005-10-23T18:27:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Martang](https://avatars.discourse-cdn.com/v4/letter/m/ecc23a/32.png) [@Martang](https://forum.kirupa.com/u/Martang)\
**Post date:** [October 23, 2005, 6:27pm UTC](https://forum.kirupa.com/t/syntax-problem-basic-stuff/166886/1 "2005-10-23T18:27:49Z")

</div>

Hey,

I have a String-var named _navC_ that is either set to “work”, “about” or “contact”. I have three different String vars: _workText_, _aboutText_ and _contactText_ containing some text…

Depending on the value of _navC_ I want the text field _textbox\_txt_ to show _workText_, _aboutText_ or _contactText_. So I want to set _textbox\_txt_ to _navC_+Text…

I can’t figure out the syntax for this and keep getting outputs like ‘workText’ etc. when in fact I want the output to be whatever is in the variable _workText_ etc.

Thanks in advance!

/Martin
