<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/970" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2002-02-03T05:06:00-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/970</id>

		<entry>
		<author><name><![CDATA[Wcc]]></name></author>
		<updated>2002-02-03T05:06:00-04:00</updated>

		<published>2002-02-03T05:06:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=4275#p4275</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=4275#p4275"/>
		<title type="html"><![CDATA[how do I do loops]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=4275#p4275"><![CDATA[
It would probably save code to use a for loop:<br><div class="codebox"><p>Code: </p><pre><code>proc loop {} {  for {set i 0} {$i &lt; 5} {incr i} {     statements to execute  } }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=270">Wcc</a> — Sun Feb 03, 2002 5:06 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Petersen]]></name></author>
		<updated>2002-02-03T01:02:00-04:00</updated>

		<published>2002-02-03T01:02:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=4273#p4273</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=4273#p4273"/>
		<title type="html"><![CDATA[how do I do loops]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=4273#p4273"><![CDATA[
looks fine to me. Maybe an error or a break statement is dropping it out of the loop...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=60">Petersen</a> — Sun Feb 03, 2002 1:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-02-02T23:58:00-04:00</updated>

		<published>2002-02-02T23:58:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=4272#p4272</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=4272#p4272"/>
		<title type="html"><![CDATA[how do I do loops]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=4272#p4272"><![CDATA[
Wanted to execute some statements in a proc a certain number of times until a max counter is reached. What am I missing in the following because it only loops once only and I wanted to execute some statements 5 times.<br><br>proc loop<br>set countbeg 0<br>set countmax 5<br><br>while { $countbeg &lt; $countmax } {<br>incr countbeg<br>statements to execute...<br>}<br><br>Thanks tom^<br><p>Statistics: Posted by Guest — Sat Feb 02, 2002 11:58 pm</p><hr />
]]></content>
	</entry>
	</feed>
