<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>BullCharts : If Statement</title>
  <link>http://www.bullcharts.com.au/forum/</link>
  <description>This is an XML content feed of; BullCharts : BullScript : If Statement</description>
  <copyright>Copyright (c) 2006-2009 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 15 Apr 2026 13:48:50 +0000</pubDate>
  <lastBuildDate>Tue, 29 Aug 2006 21:16:53 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.bullcharts.com.au/forum/RSS_post_feed.asp?TID=379</WebWizForums:feedURL>
  <image>
   <title>BullCharts</title>
   <url>http://www.bullcharts.com.au/forum/http://www.bullcharts.com.au/images/bull_logo.gif</url>
   <link>http://www.bullcharts.com.au/forum/</link>
  </image>
  <item>
   <title>If Statement : Hi Zorro, Your last statement...</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=379&amp;PID=1413#1413</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.bullcharts.com.au/forum/member_profile.asp?PF=186" rel="nofollow">NeilW</a><br /><strong>Subject:</strong> 379<br /><strong>Posted:</strong> 29&nbsp;Aug&nbsp;2006 at 9:16pm<br /><br /><P>Hi Zorro,</P><P>Your last statement was in reality the final answer.</P><P>"Each variable can only be assigned to once. "</P><P>I have not found in the Help where this is actually stated, perhaps some more generalised syntax help would not go astray. </P><P>I personally program in Pascal as well as C and I'm aware of the differances between a comparison and a asssignment. Both of the above languages are different in these areas. </P><P>It was in Bullcharts&nbsp;scripting language, that allowed me to appear to do some assigning and also the gotcha of only being aloud to assign a variables once that caught me. This once only assigmnet I find to be a pain in the &lt;bleep&gt; </P><P>Just out of interest, I wonder what the result of A is &nbsp;-</P><P>A := If(1=2,3=3,4=4);</P><P>Does A = True ??</P><P>Neil.<BR></P><span style="font-size:10px"><br /><br />Edited by NeilW</span>]]>
   </description>
   <pubDate>Tue, 29 Aug 2006 21:16:53 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=379&amp;PID=1413#1413</guid>
  </item> 
  <item>
   <title>If Statement : Yes, this is correct.= is a comparison,...</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=379&amp;PID=1410#1410</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.bullcharts.com.au/forum/member_profile.asp?PF=76" rel="nofollow">zorro</a><br /><strong>Subject:</strong> 379<br /><strong>Posted:</strong> 29&nbsp;Aug&nbsp;2006 at 9:01pm<br /><br />Yes, this is correct.<br>= is a comparison, and will return either 1 or zero depending on whether the two variables are the same, but it doesn't actually store anything in either variable.<br>Whereas := is an assignment.<br>Though they both look similar, they're very different in what they do.<br><br>Each variable can only be assigned to once. <br><br>]]>
   </description>
   <pubDate>Tue, 29 Aug 2006 21:01:21 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=379&amp;PID=1410#1410</guid>
  </item> 
  <item>
   <title>If Statement : I think you are correct that =...</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=379&amp;PID=1409#1409</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.bullcharts.com.au/forum/member_profile.asp?PF=173" rel="nofollow">scrooge</a><br /><strong>Subject:</strong> 379<br /><strong>Posted:</strong> 22&nbsp;Aug&nbsp;2006 at 12:00pm<br /><br />I think you are correct that = leads to a comparison not anassignment.&nbsp; Therefore&nbsp; the expression If(A&lt;&gt;B,C=A,C=B)will return false if A&lt;&gt;B and C&lt;&gt;A, true if A&lt;&gt;B andC=A and so on.<br><br>To assign a value to C try this:<br><br>C:= if(A&lt;&gt;B,A,B)<br>]]>
   </description>
   <pubDate>Tue, 22 Aug 2006 12:00:20 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=379&amp;PID=1409#1409</guid>
  </item> 
  <item>
   <title>If Statement : Hi, Yes and no, what is the value...</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=379&amp;PID=1407#1407</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.bullcharts.com.au/forum/member_profile.asp?PF=186" rel="nofollow">NeilW</a><br /><strong>Subject:</strong> 379<br /><strong>Posted:</strong> 18&nbsp;Aug&nbsp;2006 at 5:46pm<br /><br /><P>Hi,</P><P>Yes and no, what is the value of C in the first question?</P><P>If I have </P><P>A:=4</P><P>A=5</P><P>A=6</P><P>A=7</P><P>Now what is the value of A?</P><P>It is 4</P><P>so with the following</P><P>K:=4</P><P>if(true,K=5,K=6)</P><P>would you expect K to now equal 4 or 5?</P><P>My testing shows K=4</P><P>You can only assign a variable once and it almost appears that the k=5 in the above IF is not an assigment but a comparison.</P><P>if you try the following </P><P>K:=4</P><P>if(true,k:=5,K:=6) you get syntax error messages.</P><P>&nbsp;</P><P>Neil.</P>]]>
   </description>
   <pubDate>Fri, 18 Aug 2006 17:46:16 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=379&amp;PID=1407#1407</guid>
  </item> 
  <item>
   <title>If Statement : Neil You appear to have answered...</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=379&amp;PID=1406#1406</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.bullcharts.com.au/forum/member_profile.asp?PF=32" rel="nofollow">chart rider</a><br /><strong>Subject:</strong> 379<br /><strong>Posted:</strong> 17&nbsp;Aug&nbsp;2006 at 6:29pm<br /><br /><P>Neil</P><P>You appear to have answered your question?</P><P>The&nbsp;2nd argument&nbsp;is the result if the 1st code is true, while the 3rd assignment is the result if the 1st code is false.</P><P>CR</P>]]>
   </description>
   <pubDate>Thu, 17 Aug 2006 18:29:19 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=379&amp;PID=1406#1406</guid>
  </item> 
  <item>
   <title>If Statement : Hi All, How exactly does the...</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=379&amp;PID=1405#1405</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.bullcharts.com.au/forum/member_profile.asp?PF=186" rel="nofollow">NeilW</a><br /><strong>Subject:</strong> 379<br /><strong>Posted:</strong> 15&nbsp;Aug&nbsp;2006 at 9:23pm<br /><br /><P>Hi All,</P><P>How exactly does the If statement work?</P><P>a := 1;</P><P>b := 2;</P><P>c := 3;</P><P>If I were to use the following</P><P>If(A&lt;&gt;B,C=A,C=B);</P><P>What does C now hold?</P><P>From testing the 2nd &amp; 3rd arguments are purley assignments not areas were code can be placed. I.e. C=A</P><P>If(A&lt;&gt;B,"A","B");</P><P>In this case here "A" will be printed.</P><P>Neil.</P><P>&nbsp;</P><span style="font-size:10px"><br /><br />Edited by NeilW</span>]]>
   </description>
   <pubDate>Tue, 15 Aug 2006 21:23:39 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=379&amp;PID=1405#1405</guid>
  </item> 
 </channel>
</rss>