<?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/5002" />

	<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>2003-07-17T11:44:28-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-07-17T11:44:28-04:00</updated>

		<published>2003-07-17T11:44:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23610#p23610</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23610#p23610"/>
		<title type="html"><![CDATA[else if { Possible?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23610#p23610"><![CDATA[
Not only that, but you can't put "else" or "elseif" in a new line by themselves, you must place the closing bracet before.<div class="codebox"><p>Code: </p><pre><code>if {a} { puts a }else { puts b }</code></pre></div>will result in an error<br>while:<div class="codebox"><p>Code: </p><pre><code>if {a} {  puts a} else {  puts b}</code></pre></div>will work.<p>Statistics: Posted by Guest — Thu Jul 17, 2003 11:44 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[slennox]]></name></author>
		<updated>2003-07-17T03:38:51-04:00</updated>

		<published>2003-07-17T03:38:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23590#p23590</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23590#p23590"/>
		<title type="html"><![CDATA[else if { Possible?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23590#p23590"><![CDATA[
Your else if is wrong. Try:<br><div class="codebox"><p>Code: </p><pre><code>if { $nick == "bla" } {  putlog "Nick is bla"} elseif { $nick == "blaa" } {  putlog "Nick is blaa"} else {  putlog "I dont know that Nickname"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=13034">slennox</a> — Thu Jul 17, 2003 3:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[minotaur]]></name></author>
		<updated>2003-07-16T20:36:16-04:00</updated>

		<published>2003-07-16T20:36:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23584#p23584</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23584#p23584"/>
		<title type="html"><![CDATA[else if { Possible?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23584#p23584"><![CDATA[
I would like to know how can is use in TCL such like that:<br><br>if { $nick == "bla" } {<br>putlog "Nick is bla"<br>}<br>else if { $nick == "blaa" } {<br>putlog "Nick is blaa"<br>} else {<br>putlog "I dont know that Nickname"<br>}<br><br>that doesnt work I need the else if function but how it works <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"> the Bot always says <br> <blockquote class="uncited"><div>Tcl error [test]: invalid command name "else"</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3458">minotaur</a> — Wed Jul 16, 2003 8:36 pm</p><hr />
]]></content>
	</entry>
	</feed>
