<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "cfscript"]]></title>
		<link>http://www.smithproject.org/forum/posts/list/6.page</link>
		<description><![CDATA[Latest messages posted in the topic "cfscript"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>cfscript</title>
				<description><![CDATA[ Smith seems to have trouble with 
<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>for&#40;i ; i LT endStr; i=i+1&#41;{</pre>
		</div>

and 
<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>for &#40;fb_.aCircuitin fb_.application.fusebox.circuits&#41; {</pre>
		</div>
I found a work around for this by changing it to 
   <span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre> for &#40;circuit in fb_.application.fusebox.circuits&#41; {
		fb_.aCircuit = circuit;</pre>
		</div>

Any ideas how to fix these issues?]]></description>
				<guid isPermaLink="true">http://www.smithproject.org/forum/posts/list/139.page#500</guid>
				<link>http://www.smithproject.org/forum/posts/list/139.page#500</link>
				<pubDate><![CDATA[Fri, 18 Jan 2008 17:26:01]]> GMT</pubDate>
				<author><![CDATA[ jorgepereira]]></author>
			</item>
			<item>
				<title>Re:cfscript</title>
				<description><![CDATA[ In your first sample, you have not initialized variable 'i'.
I tested this and it works fine:

<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>
&lt;html&gt;
&lt;cfscript&gt;
	text = '';
	for &#40;i = 1; i LTE 10; i = i + 1&#41; {
		text = text & ' ' & i; 
	}
	WriteOutput&#40;text&#41;;
&lt;/cfscript&gt;
</pre>
		</div>

This also works:
<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>
&lt;html&gt;
&lt;cfscript&gt;
	text = '';
	i = 1;
	for &#40; ; i LTE 10; i = i + 1&#41; {
		text = text & ' ' & i; 
	}
	WriteOutput&#40;text&#41;;
&lt;/cfscript&gt;
</pre>
		</div>

Both examples have output:
1 2 3 4 5 6 7 8 9 10



In your second example, keyword 'in' is missing. It is not optional in smith.

]]></description>
				<guid isPermaLink="true">http://www.smithproject.org/forum/posts/list/139.page#506</guid>
				<link>http://www.smithproject.org/forum/posts/list/139.page#506</link>
				<pubDate><![CDATA[Mon, 21 Jan 2008 09:36:38]]> GMT</pubDate>
				<author><![CDATA[ orcus]]></author>
			</item>
	</channel>
</rss>