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

	<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>2010-06-18T15:20:02-04:00</updated>

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

		<entry>
		<author><name><![CDATA[DJCharlie]]></name></author>
		<updated>2010-06-18T15:19:45-04:00</updated>

		<published>2010-06-18T15:19:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93352#p93352</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93352#p93352"/>
		<title type="html"><![CDATA[Multiple if $nicks? [SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93352#p93352"><![CDATA[
That fixed it, thanks!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10641">DJCharlie</a> — Fri Jun 18, 2010 3:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2010-06-17T15:29:24-04:00</updated>

		<published>2010-06-17T15:29:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93333#p93333</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93333#p93333"/>
		<title type="html"><![CDATA[Multiple if $nicks? [SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93333#p93333"><![CDATA[
To use the logical OR in a conditional, do something like this:<div class="codebox"><p>Code: </p><pre><code>...if {conditional1 || conditional2} {...</code></pre></div>Where conditional1 would be one conditional such as $nick == "DJCharlie".<br><br>In the case you'd like to test one variable against multiple values, this could be optimized using the switch command:<div class="codebox"><p>Code: </p><pre><code>...switch $nick {  "DJCharlie" -  "NML_375" -  "SomeOtherDude" {    ...  }}..</code></pre></div>In this case, the - means "use the next match", which allows us to stack an infinite number of cases to use the same code.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Thu Jun 17, 2010 3:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DJCharlie]]></name></author>
		<updated>2010-06-18T15:20:02-04:00</updated>

		<published>2010-06-17T12:31:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93332#p93332</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93332#p93332"/>
		<title type="html"><![CDATA[Multiple if $nicks? [SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93332#p93332"><![CDATA[
Ok, say I've got this bit of code:<br><div class="codebox"><p>Code: </p><pre><code>  if {$nick == "DJCharlie"} {  ...rest of proc goes here...  }</code></pre></div>What I'd like, is to check if the nick is DJCharlie OR another authorized nick. Is that possible? If so, how?<br><br>Thanks in advance!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10641">DJCharlie</a> — Thu Jun 17, 2010 12:31 pm</p><hr />
]]></content>
	</entry>
	</feed>
