title: coldfusion 9 VAR issue whilst using <cfset>
body: <p>I am getting very confused. </p>
  
  <p>I have a set of variables...</p>
  
  <pre><code>&lt;cfset cataloge_menu_1 = "menu item 1"&gt;
  &lt;cfset cataloge_menu_2 = "menu item 2"&gt;
  &lt;cfset cataloge_menu_3 = "menu item 3"&gt;
  </code></pre>
  
  <p>I have a URL ID so what i'm trying to do is output the above variable base on the URL ID, so I have the following...</p>
  
  <pre><code>&lt;cfset cathead = "cataloge_menu_"&amp;url.typeID&gt;
  </code></pre>
  
  <p>and the following output...</p>
  
  <pre><code>&lt;cfoutput&gt;#cathead#&lt;/cfoutput&gt;
  </code></pre>
  
  <p>But instead of outputting "menu item 1" or menu item 2" depending on the URL ID, it outputs "cataloge_menu_1" or "cataloge_menu_2".</p>
  
  <p>What I need to output is the "menu item X" not the "cataloge_menu_X".</p>
  
  <p>Any help would be most appreciated.</p>