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

	<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>2004-07-13T09:03:37-04:00</updated>

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

		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2004-07-13T09:03:37-04:00</updated>

		<published>2004-07-13T09:03:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38559#p38559</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38559#p38559"/>
		<title type="html"><![CDATA[Trouble with info exists]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38559#p38559"><![CDATA[
I hate myself <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>Sorry for this really stupid question, I promise I won't re-ask it <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Tue Jul 13, 2004 9:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[KrzychuG]]></name></author>
		<updated>2004-07-13T08:47:38-04:00</updated>

		<published>2004-07-13T08:47:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38558#p38558</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38558#p38558"/>
		<title type="html"><![CDATA[Trouble with info exists]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38558#p38558"><![CDATA[
Try this:<br><div class="codebox"><p>Code: </p><pre><code>set looking [string tolower [lindex [split $text] 0]]    if {[info exists ::lexik($looking)]} {</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3672">KrzychuG</a> — Tue Jul 13, 2004 8:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2004-07-13T08:03:32-04:00</updated>

		<published>2004-07-13T08:03:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38556#p38556</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38556#p38556"/>
		<title type="html"><![CDATA[Trouble with info exists]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38556#p38556"><![CDATA[
Hi there,<br><br>I'm creating variables with the content of a file.<br>The working part:<div class="codebox"><p>Code: </p><pre><code>foreach templine [split $data "\n"] {set faq_line [split $templine "="]regsub -all \# [lindex $faq_line 1] "\037" lex_textset lexik([string tolower [lindex $faq_line 0]]) $lex_text}</code></pre></div>And then, users can type !lexique &lt;keyword&gt; to call a definition wich is in $lexik(keyword)<br>But... the following test always match:<div class="codebox"><p>Code: </p><pre><code>set looking [string tolower [lindex [split $text] 0]]if {[info exists $::lexik($looking)]} {</code></pre></div>$text is the keyword the user enter... and the tcl always find that an info exists.<br>Can someone tell me where is the trouble plz?<br><br>Thx by advance<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Tue Jul 13, 2004 8:03 am</p><hr />
]]></content>
	</entry>
	</feed>
