<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.conservapedia.com/index.php?action=history&amp;feed=atom&amp;title=Test_for_equality</id>
	<title>Test for equality - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.conservapedia.com/index.php?action=history&amp;feed=atom&amp;title=Test_for_equality"/>
	<link rel="alternate" type="text/html" href="https://www.conservapedia.com/index.php?title=Test_for_equality&amp;action=history"/>
	<updated>2026-11-28T16:57:34Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.14</generator>
	<entry>
		<id>https://www.conservapedia.com/index.php?title=Test_for_equality&amp;diff=1229714&amp;oldid=prev</id>
		<title>DavidB4-bot: /* top */clean up</title>
		<link rel="alternate" type="text/html" href="https://www.conservapedia.com/index.php?title=Test_for_equality&amp;diff=1229714&amp;oldid=prev"/>
		<updated>2016-06-23T15:05:27Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;top: &lt;/span&gt;clean up&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 15:05, June 23, 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l20&quot; &gt;Line 20:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 20:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The curly brace languages all require a [[double equal sign]] to be used for tests. This may look strange to the beginner, but it distinguishes an [[assignment]] from a [[test]]. If you use a [[single equal sign]] your code may still compile and run, but your results will probably be incorrect.  &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The curly brace languages all require a [[double equal sign]] to be used for tests. This may look strange to the beginner, but it distinguishes an [[assignment]] from a [[test]]. If you use a [[single equal sign]] your code may still compile and run, but your results will probably be incorrect.  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;category&lt;/del&gt;:Computer Programming]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Category&lt;/ins&gt;:Computer Programming]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>DavidB4-bot</name></author>
	</entry>
	<entry>
		<id>https://www.conservapedia.com/index.php?title=Test_for_equality&amp;diff=660092&amp;oldid=prev</id>
		<title>Ed Poor: Created page with 'A '''test for equality''' in computer programming is one of the trickiest tests used to control a computer program. The usual syntax is something like:   IF (''test'') THEN   ......'</title>
		<link rel="alternate" type="text/html" href="https://www.conservapedia.com/index.php?title=Test_for_equality&amp;diff=660092&amp;oldid=prev"/>
		<updated>2009-05-04T18:24:37Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;A &amp;#039;&amp;#039;&amp;#039;test for equality&amp;#039;&amp;#039;&amp;#039; in computer programming is one of the trickiest tests used to control a computer program. The usual syntax is something like:   IF (&amp;#039;&amp;#039;test&amp;#039;&amp;#039;) THEN   ......&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;A '''test for equality''' in computer programming is one of the trickiest tests used to control a computer program. The usual syntax is something like:&lt;br /&gt;
&lt;br /&gt;
 IF (''test'') THEN&lt;br /&gt;
  ... ''do something''&lt;br /&gt;
 ELSE&lt;br /&gt;
  ... ''do something else''&lt;br /&gt;
 END IF&lt;br /&gt;
&lt;br /&gt;
or in the curly brace languages like Java, C (etc.) or PHP:&lt;br /&gt;
&lt;br /&gt;
 if (''test'') {&lt;br /&gt;
  ... ''do something''&lt;br /&gt;
 }&lt;br /&gt;
 else {&lt;br /&gt;
  ... ''do something else''&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
The tricky part is the ''test'' syntax. You can simply write x &amp;gt; 4 with no problem (see [[test for inequality]]), but if you check for x = 4 you could have a disastrous side effect.&lt;br /&gt;
&lt;br /&gt;
The curly brace languages all require a [[double equal sign]] to be used for tests. This may look strange to the beginner, but it distinguishes an [[assignment]] from a [[test]]. If you use a [[single equal sign]] your code may still compile and run, but your results will probably be incorrect. &lt;br /&gt;
&lt;br /&gt;
[[category:Computer Programming]]&lt;/div&gt;</summary>
		<author><name>Ed Poor</name></author>
	</entry>
</feed>