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

	<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-12-07T08:18:27-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-12-07T08:18:27-04:00</updated>

		<published>2002-12-07T08:18:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=14067#p14067</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=14067#p14067"/>
		<title type="html"><![CDATA[Tcl error [test]: syntax error in expression]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=14067#p14067"><![CDATA[
big thx... i will try it<p>Statistics: Posted by Guest — Sat Dec 07, 2002 8:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-12-06T19:48:58-04:00</updated>

		<published>2002-12-06T19:48:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=14061#p14061</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=14061#p14061"/>
		<title type="html"><![CDATA[Tcl error [test]: syntax error in expression]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=14061#p14061"><![CDATA[
This is due to the genral formatting of your script.<br><br>Tcl executes code, based on blocks or lines. All depending, how it is listed.<br><br>To start a block you open a bracker {.<br><br>ANd you close like so }<br><br>The problem is, if you close the bracket, then go to a new line, Tcl treats it as complete.<br><br>As such, havign the else command the way you would with mIRC, doesn't work in Tcl.<br><br>mIRC uses what they call a lazy interpreter, where things are pretty much worked around, and it has no real format to it.<br><br>To fix this, you will need to change the way the if-elseif-else block is placed together.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Fri Dec 06, 2002 7:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-12-06T18:35:40-04:00</updated>

		<published>2002-12-06T18:35:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=14060#p14060</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=14060#p14060"/>
		<title type="html"><![CDATA[Tcl error [test]: syntax error in expression]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=14060#p14060"><![CDATA[
thx... now it makes the if command... but then... Tcl error [test]: invalid command name "else"<br><br>Code is now:<br><br>bind pub - "!test" test<br><br>proc test {nick userhost hand chan target} {<br>if {$nick == "\]Facility\["} {putchan $chan "Test #1"}<br>else {putchan $chan "Test #2"}<br>}<p>Statistics: Posted by Guest — Fri Dec 06, 2002 6:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-12-06T18:25:50-04:00</updated>

		<published>2002-12-06T18:25:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=14059#p14059</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=14059#p14059"/>
		<title type="html"><![CDATA[Tcl error [test]: syntax error in expression]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=14059#p14059"><![CDATA[
You need to enclose the word/phrase in a Tcl string.<br><br>This can be done using ""<br><br>IE<br><br>"\]blah\["<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Fri Dec 06, 2002 6:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-12-06T17:45:15-04:00</updated>

		<published>2002-12-06T17:45:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=14058#p14058</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=14058#p14058"/>
		<title type="html"><![CDATA[Tcl error [test]: syntax error in expression]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=14058#p14058"><![CDATA[
have a problem with this script:<br><br>bind pub - "!test" test<br><br>proc test {nick userhost hand chan target} {<br>if {$nick == \]Facility\[} {putchan $chan "Test #1"}<br>else {putchan $chan "Test #2"}<br>}<br><br>eggdrop says: Tcl error [test]: syntax error in expression "$nick == \]Facility\["<br><br>same without \ in front of ] and [ ---&gt;Tcl error [test]: syntax error in expression "$nick == ]Facility["<br><br>hope you can help... thx<p>Statistics: Posted by Guest — Fri Dec 06, 2002 5:45 pm</p><hr />
]]></content>
	</entry>
	</feed>
