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

	<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>2002-10-05T00:44:17-04:00</updated>

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

		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2002-10-05T00:44:17-04:00</updated>

		<published>2002-10-05T00:44:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11718#p11718</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11718#p11718"/>
		<title type="html"><![CDATA[problem with an or statement]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11718#p11718"><![CDATA[
What you said is fine, all you have to do is turn it into code. The part where you mess up is you're not being detailed in what you say.<br><br>Here's what you really mean:<br><br>if $whoisuserinfo is not "", AND $whoisuserinfo is not "*", then do this<br>otherwise do nothing<br><br>Another way to say it, closer to what you actually said, is<br><br>if $whoisuserinfo is "" OR $whoisuserinfo is "*" then do nothing<br>otherwise do this<br><br>As you can see that logic is kind of backwards. But either one will work.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Sat Oct 05, 2002 12:44 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simonbell]]></name></author>
		<updated>2002-10-04T20:06:27-04:00</updated>

		<published>2002-10-04T20:06:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11716#p11716</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11716#p11716"/>
		<title type="html"><![CDATA[problem with an or statement]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11716#p11716"><![CDATA[
sorry, my mistake for not being clear enough.<br><br>I want to make it so that if $whoisuserinfo returns a value which IS NOT "" (as in blank) or a * then it would execute that particular part of the script.<br><br>so in words if $whoisuserinfo returns nothing, or returns a *, i want nothing to happen, but if it contains anything else, i want the script to run.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1696">simonbell</a> — Fri Oct 04, 2002 8:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2002-10-04T18:43:33-04:00</updated>

		<published>2002-10-04T18:43:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11712#p11712</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11712#p11712"/>
		<title type="html"><![CDATA[Re: problem with an or statement]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11712#p11712"><![CDATA[
<blockquote class="uncited"><div>Hi<br><br>would someone be able to point out what i might be doing wrong with this little script:<br><blockquote class="uncited"><div> if { $whoisuserhand != "*" } {<br>  set whoisuserinfo [getuser $whoisuserhand INFO]<br>  if { ($whoisuserinfo != "") || ($whoisuserinfo != "*") } {<br>   set whoisinfofile [open $whoisusernick-userinfo.tmp a]<br>   puts $whoisinfofile "Info: $whoisuserinfo"<br>   close $whoisinfofile<br>   }<br>  }</div></blockquote>the problem occurs that even if "$whoisuserinfo == *" the rest of the script is still run, even though as far as i can see it should be missing out that part of the script if $whoisuserinfo == "" or "*"<br><br>am i missing something?<br><br>thanks<br>Simon</div></blockquote>In words you state it like: if $whoisuserinfo == "" or "*", but in code you state it differently.<br><br>If "whoisuserinfo == *":<br><br>- what will ($whoisuserinfo != "") evaluate too? TRUE or FALSE?<br><br>- what will ($whoisuserinfo != "*") evaluate too? TRUE or FALSE?<br><br>- And what will { ($whoisuserinfo != "") || ($whoisuserinfo != "*") } evaluate too? <br>(Read the last statement as: if "this is true" or "that is true" then ... or read it like: if {(*!="") || (*!=*)} then ...)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Fri Oct 04, 2002 6:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simonbell]]></name></author>
		<updated>2002-10-04T17:04:10-04:00</updated>

		<published>2002-10-04T17:04:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11709#p11709</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11709#p11709"/>
		<title type="html"><![CDATA[problem with an or statement]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11709#p11709"><![CDATA[
Hi<br><br>would someone be able to point out what i might be doing wrong with this little script:<br><blockquote class="uncited"><div> if { $whoisuserhand != "*" } {<br>  set whoisuserinfo [getuser $whoisuserhand INFO]<br>  if { ($whoisuserinfo != "") || ($whoisuserinfo != "*") } {<br>   set whoisinfofile [open $whoisusernick-userinfo.tmp a]<br>   puts $whoisinfofile "Info: $whoisuserinfo"<br>   close $whoisinfofile<br>   }<br>  }</div></blockquote>the problem occurs that even if "$whoisuserinfo == *" the rest of the script is still run, even though as far as i can see it should be missing out that part of the script if $whoisuserinfo == "" or "*"<br><br>am i missing something?<br><br>thanks<br>Simon<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1696">simonbell</a> — Fri Oct 04, 2002 5:04 pm</p><hr />
]]></content>
	</entry>
	</feed>
