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

	<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>2014-07-27T11:16:05-04:00</updated>

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

		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2014-07-27T11:16:05-04:00</updated>

		<published>2014-07-27T11:16:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103074#p103074</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103074#p103074"/>
		<title type="html"><![CDATA[How to enclose &quot;or&quot; conditions into one condition?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103074#p103074"><![CDATA[
<blockquote class="uncited"><div>...<br>I thought I tried this already, but I must've made a typo somewhere.</div></blockquote>That's why I asked for your exact code, as you used 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=10420">willyw</a> — Sun Jul 27, 2014 11:16 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[daigo]]></name></author>
		<updated>2014-07-27T11:01:45-04:00</updated>

		<published>2014-07-27T11:01:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103072#p103072</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103072#p103072"/>
		<title type="html"><![CDATA[How to enclose &quot;or&quot; conditions into one condition?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103072#p103072"><![CDATA[
Oh, this works..I thought I tried this already, but I must've made a typo somewhere.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12410">daigo</a> — Sun Jul 27, 2014 11:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2014-07-27T10:22:03-04:00</updated>

		<published>2014-07-27T10:22:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103071#p103071</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103071#p103071"/>
		<title type="html"><![CDATA[How to enclose &quot;or&quot; conditions into one condition?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103071#p103071"><![CDATA[
Try it like this...<div class="codebox"><p>Code: </p><pre><code>if {([string match -nocase "abc" $txt] || [string match -nocase "def" $txt] || [string match -nocase "ghi" $txt] || [string match -nocase "jkl" $txt]) &amp;&amp; $nick eq "daigo"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Sun Jul 27, 2014 10:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Get_A_Fix]]></name></author>
		<updated>2014-07-27T10:04:56-04:00</updated>

		<published>2014-07-27T10:04:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103070#p103070</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103070#p103070"/>
		<title type="html"><![CDATA[How to enclose &quot;or&quot; conditions into one condition?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103070#p103070"><![CDATA[
The parenthesis are necessary when you're using "".<br><br>For example, if I needed two conditions in an IF statement, ending in "", I would then use ( ) to keep it closed.<br><div class="codebox"><p>Code: </p><pre><code>if {[lindex [split $arg] 0] ne ""} {if {[string match -nocase "*matchthis*" $arg]} {</code></pre></div>would then become<br><div class="codebox"><p>Code: </p><pre><code>if {([lindex [split $arg] 0] ne "") &amp;&amp; ([string match -nocase "*matchthis*" $arg])} {</code></pre></div>This would fix your issue with the last condition of your statement; $nick eq "daigo"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6204">Get_A_Fix</a> — Sun Jul 27, 2014 10:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2014-07-27T09:14:05-04:00</updated>

		<published>2014-07-27T09:14:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103067#p103067</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103067#p103067"/>
		<title type="html"><![CDATA[Re: How to enclose &quot;or&quot; conditions into one condit]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103067#p103067"><![CDATA[
<blockquote class="uncited"><div>...<br> and parentheses () but none of them work.</div></blockquote>I think parenthesis work.<br><br>Show us the line of code, exactly as you used it, that utilizes parenthesis.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Sun Jul 27, 2014 9:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[daigo]]></name></author>
		<updated>2014-07-27T06:51:44-04:00</updated>

		<published>2014-07-27T06:51:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103065#p103065</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103065#p103065"/>
		<title type="html"><![CDATA[How to enclose &quot;or&quot; conditions into one condition?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103065#p103065"><![CDATA[
This is the line I'm having trouble with:<br><div class="codebox"><p>Code: </p><pre><code>if {[string match -nocase "abc" $txt] || [string match -nocase "def" $txt] || [string match -nocase "ghi" $txt] || [string match -nocase "jkl" $txt] &amp;&amp; $nick eq "daigo"}</code></pre></div>Whenever someone says "abc" "def" or "ghi" the script responds to them, even though I stated that I want only the nickname "daigo" to be responded to. I assume this is because I need to enclose all 4 of the || conditions together, but I tried brackets [], {} and parentheses () but none of them work.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12410">daigo</a> — Sun Jul 27, 2014 6:51 am</p><hr />
]]></content>
	</entry>
	</feed>
