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

	<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>2009-01-28T21:12:23-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Keen]]></name></author>
		<updated>2009-01-28T21:12:23-04:00</updated>

		<published>2009-01-28T21:12:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87148#p87148</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87148#p87148"/>
		<title type="html"><![CDATA[syntax error in expression]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87148#p87148"><![CDATA[
Thanx nml375 ii will try to use it. have i nice day<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10458">Keen</a> — Wed Jan 28, 2009 9:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2009-01-28T21:06:05-04:00</updated>

		<published>2009-01-28T21:06:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87147#p87147</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87147#p87147"/>
		<title type="html"><![CDATA[syntax error in expression]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87147#p87147"><![CDATA[
<blockquote class="uncited"><div>İ think i understand. an command and its component must be in the same line ? <br><br>not <br>}<br>else {<br><div class="codebox"><p>Code: </p><pre><code>if ..... {} else { }</code></pre></div></div></blockquote>Correct.<br><blockquote class="uncited"><div>is there an Editor for progrraming tcl/eggdtop script? that automatically do this for me ?</div></blockquote>I can't think of any specific IDE that keeps track of newlines like that. There are, however, numerous editors/IDE's out there that do support highlighting of tcl-code, one of my favourites being emacs.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Wed Jan 28, 2009 9:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Keen]]></name></author>
		<updated>2009-01-28T20:38:08-04:00</updated>

		<published>2009-01-28T20:38:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87146#p87146</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87146#p87146"/>
		<title type="html"><![CDATA[syntax error in expression]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87146#p87146"><![CDATA[
İ think i understand. an command and its component must be in the same line ? <br><br>not <br>}<br>else {<br><div class="codebox"><p>Code: </p><pre><code>if ..... {} else { }</code></pre></div><br>is there an Editor for progrraming tcl/eggdtop script? that automatically do this for me ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10458">Keen</a> — Wed Jan 28, 2009 8:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2009-01-28T20:21:31-04:00</updated>

		<published>2009-01-28T20:21:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87145#p87145</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87145#p87145"/>
		<title type="html"><![CDATA[syntax error in expression]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87145#p87145"><![CDATA[
The problem at hand are these lines:<div class="codebox"><p>Code: </p><pre><code>}else {</code></pre></div>In tcl, there is no command named "else". Instead, it's a parameter for <strong class="text-strong">if</strong>. What you need to keep in mind here, is that tcl is newline-terminated, with the exception of newlines within a string (enclosed with either "" or {}).<br><br>Simply put, the above should be something like this:<div class="codebox"><p>Code: </p><pre><code>} else {</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Wed Jan 28, 2009 8:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2009-01-28T20:21:38-04:00</updated>

		<published>2009-01-28T20:18:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87144#p87144</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87144#p87144"/>
		<title type="html"><![CDATA[syntax error in expression]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87144#p87144"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pub - !opekle opekleproc opekle {nick host hand chan text} {   if {[string equal -nocase $nick "jesus"]} {      putserv "privmsg $chan :You are Jesus."   } else {     putserv "privmsg $chan :You are not Jesus."   }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Wed Jan 28, 2009 8:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Keen]]></name></author>
		<updated>2009-01-28T20:09:58-04:00</updated>

		<published>2009-01-28T20:09:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87143#p87143</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87143#p87143"/>
		<title type="html"><![CDATA[syntax error in expression]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87143#p87143"><![CDATA[
Sorry you are rigt. the second error ist<br><br>02:01] &lt;opLa&gt; [18:01] Tcl error [opekle]: invalid command name "else"<br>[02:03] &lt;opLa&gt; [18:03] Tcl error [opekle]: invalid command name "else"<br><img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>can you correct the code for me so i can understand what i is wrong?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10458">Keen</a> — Wed Jan 28, 2009 8:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Keen]]></name></author>
		<updated>2009-01-28T20:07:27-04:00</updated>

		<published>2009-01-28T20:07:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87142#p87142</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87142#p87142"/>
		<title type="html"><![CDATA[syntax error in expression]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87142#p87142"><![CDATA[
thanx a lots it is working<br><br><br>[01:51] &lt;@Jesus&gt; !opekle<br>[02:01] &lt;@Jesus&gt; !opekle<br>[02:01] &lt;opLa&gt; You are not Jesus.<br><br>[02:03] &lt;@<strong class="text-strong">jesus</strong>&gt; !opekle<br>[02:03] &lt;opLa&gt; You are not Jesus.<br><br>İt is not case sensitive. and there is no any problem  after i use quotes arround literal?<br><br>is it okey ?<br><img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>im very new with tcl. jut for to days ( and im not english so sometimes i cant understand.)<br><br>Thanx<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10458">Keen</a> — Wed Jan 28, 2009 8:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2009-01-28T20:20:52-04:00</updated>

		<published>2009-01-28T20:00:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87141#p87141</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87141#p87141"/>
		<title type="html"><![CDATA[Re: syntax error in expression]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87141#p87141"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>if {$wnick!="Jesus"} {</code></pre></div>Try using quotes around a literal expression perhaps? Your next error will be <strong class="text-strong">invalid command name: else</strong> because for some reason you close the <strong class="text-strong">if</strong> clause and put the <strong class="text-strong">else</strong> on the next line... Don't complain it's case-sensitive either, you wrote it <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Wed Jan 28, 2009 8:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Keen]]></name></author>
		<updated>2009-01-28T19:55:27-04:00</updated>

		<published>2009-01-28T19:55:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87140#p87140</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87140#p87140"/>
		<title type="html"><![CDATA[syntax error in expression]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87140#p87140"><![CDATA[
hello i try to if then else syntax aber i see this error on ctcp chat windows with my bot.<br><br>Tcl error [opekle]: syntax error in expression "$ahmet!=Jesus": variable references require preceding $<br><br><br>tcl codes are:<br><br><br>set wnick "Jesus"<br><br>bind pub - !opekle opekle<br>proc opekle {nick host hand chan text} {<br>global ahmet<br>set wnick [lindex $text 0]<br>if {$wnick!=Jesus} {<br>putserv "privmsg $chan :You are not Jesus."<br>}<br>else {<br>putserv "privmsg $chan :You are Jesus."<br>}<br>}<br><br><br>what is the problem? what is wrong please help me thanx<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10458">Keen</a> — Wed Jan 28, 2009 7:55 pm</p><hr />
]]></content>
	</entry>
	</feed>
