# Variable inside quotes

**URL:** <https://forum.kirupa.com/t/variable-inside-quotes/166144>\
**Category:** Uncategorized\
**Created:** [October 17, 2005, 4:49pm UTC](https://forum.kirupa.com/t/variable-inside-quotes/166144 "2005-10-17T16:49:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mpelland](https://avatars.discourse-cdn.com/v4/letter/m/c0e974/32.png) [@mpelland](https://forum.kirupa.com/u/mpelland)\
**Post date:** [October 17, 2005, 4:49pm UTC](https://forum.kirupa.com/t/variable-inside-quotes/166144/1 "2005-10-17T16:49:48Z")

</div>

hey,  
I am trying to navigate to a scene based on a variable name for the scene. ie gotoAndPlay("Scene " + sceneNum, 1);

problem is that the scene has to be in quotes ie “Scene 1”… but I have to use this code over and over and don’t really want to have a bunch of conditionals… is there are way to incorporate the variable into the quotes, like in other languages ie “Scene {sceneNum}” or “Scene $sceneNum” ???
