title: How to get rid of last comma when generating a list?
body: <p>I'm writing a web service in ColdFusion.  The problem is that I cannot figure out how to get rid of the comma after the last element. My code looks like this:</p>
  
  <pre><code>&lt;cfoutput query="Attachments"&gt;
      #url#,
  &lt;/cfoutput&gt;
  </code></pre>
  
  <p>Which produces output like this (notice the trailing comma)</p>
  
  <pre><code>url1,url2,url3, 
  </code></pre>
  
  <p>How can I get rid of the trailing comma and produce this instead?</p>
  
  <pre><code>url1,url2,url3
  </code></pre>