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

	<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-11-18T18:05:26-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Dedan]]></name></author>
		<updated>2003-11-18T18:05:26-04:00</updated>

		<published>2003-11-18T18:05:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=30278#p30278</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=30278#p30278"/>
		<title type="html"><![CDATA[checking for list element]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=30278#p30278"><![CDATA[
thanks User    <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3472">Dedan</a> — Tue Nov 18, 2003 6:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-11-18T06:07:43-04:00</updated>

		<published>2003-11-18T06:07:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=30233#p30233</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=30233#p30233"/>
		<title type="html"><![CDATA[Re: checking for list element]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=30233#p30233"><![CDATA[
Tcl doesn't evaluate all non-empty strings as "true" like many other languages. Only "true", "yes" and "on" are accepted as "true" in a expression.<div class="codebox"><p>Code: </p><pre><code>if {[llength [split $stuff]]==2} {...};# or &gt;=2 if you want it to contain 2 or more, of course :)</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Tue Nov 18, 2003 6:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Dedan]]></name></author>
		<updated>2003-11-18T05:48:23-04:00</updated>

		<published>2003-11-18T05:48:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=30232#p30232</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=30232#p30232"/>
		<title type="html"><![CDATA[checking for list element]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=30232#p30232"><![CDATA[
i want to see if text has a second element,<br>i tried the below and got an error,<br>any ideas?<br><br>input dddd eeeeee<br><br>  if {[lindex [split $text] 1]} {<br>  putserv "PRIVMSG $channel :mark trig2ger"<br>  return 0<br>  }<br><br>  [04:44] Tcl error [start:test]: expected boolean value but got "eeeeee"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3472">Dedan</a> — Tue Nov 18, 2003 5:48 am</p><hr />
]]></content>
	</entry>
	</feed>
