<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://coderwiki.org/index.php?action=history&amp;feed=atom&amp;title=Equal_to_operator</id>
	<title>Equal to operator - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://coderwiki.org/index.php?action=history&amp;feed=atom&amp;title=Equal_to_operator"/>
	<link rel="alternate" type="text/html" href="http://coderwiki.org/index.php?title=Equal_to_operator&amp;action=history"/>
	<updated>2026-05-19T03:47:49Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>http://coderwiki.org/index.php?title=Equal_to_operator&amp;diff=37&amp;oldid=prev</id>
		<title>Dylan: replace &#039;conditional operator&#039; with &#039;comparison operator&#039;</title>
		<link rel="alternate" type="text/html" href="http://coderwiki.org/index.php?title=Equal_to_operator&amp;diff=37&amp;oldid=prev"/>
		<updated>2025-08-09T10:26:17Z</updated>

		<summary type="html">&lt;p&gt;replace &amp;#039;conditional operator&amp;#039; with &amp;#039;comparison operator&amp;#039;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&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 10:26, 9 August 2025&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-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&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;One common [[&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;conditional &lt;/del&gt;operator]] is the &#039;&#039;&#039;equal to operator&#039;&#039;&#039;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&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;One common [[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;comparison &lt;/ins&gt;operator]] is the &#039;&#039;&#039;equal to operator&#039;&#039;&#039;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&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;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&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;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&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;This operator will return [[Boolean|true]] if the value on the &amp;#039;&amp;#039;&amp;#039;left&amp;#039;&amp;#039;&amp;#039; is &amp;#039;&amp;#039;&amp;#039;the same as&amp;#039;&amp;#039;&amp;#039; the value on the &amp;#039;&amp;#039;&amp;#039;right&amp;#039;&amp;#039;&amp;#039; of the operator.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&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;This operator will return [[Boolean|true]] if the value on the &amp;#039;&amp;#039;&amp;#039;left&amp;#039;&amp;#039;&amp;#039; is &amp;#039;&amp;#039;&amp;#039;the same as&amp;#039;&amp;#039;&amp;#039; the value on the &amp;#039;&amp;#039;&amp;#039;right&amp;#039;&amp;#039;&amp;#039; of the operator.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Dylan</name></author>
	</entry>
	<entry>
		<id>http://coderwiki.org/index.php?title=Equal_to_operator&amp;diff=34&amp;oldid=prev</id>
		<title>Dylan: replace &#039;less than&#039; with &#039;equal to&#039; in Syntax heading</title>
		<link rel="alternate" type="text/html" href="http://coderwiki.org/index.php?title=Equal_to_operator&amp;diff=34&amp;oldid=prev"/>
		<updated>2025-08-09T10:23:13Z</updated>

		<summary type="html">&lt;p&gt;replace &amp;#039;less than&amp;#039; with &amp;#039;equal to&amp;#039; in Syntax heading&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&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 10:23, 9 August 2025&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-l4&quot;&gt;Line 4:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 4:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&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;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&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;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&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;== Syntax ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&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;== Syntax ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&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;In most languages, the &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;less than &lt;/del&gt;operator is represented by a &amp;lt;code&amp;gt;==&amp;lt;/code&amp;gt; symbol. This is different from the [[assignment]] [[Assignment operator|operator]], &amp;lt;code&amp;gt;=&amp;lt;/code&amp;gt; which is used to set the value of a variable.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&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;In most languages, the &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;equal to &lt;/ins&gt;operator is represented by a &amp;lt;code&amp;gt;==&amp;lt;/code&amp;gt; symbol. This is different from the [[assignment]] [[Assignment operator|operator]], &amp;lt;code&amp;gt;=&amp;lt;/code&amp;gt; which is used to set the value of a variable.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&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;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&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;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&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;== Comparison of different types ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&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;== Comparison of different types ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Dylan</name></author>
	</entry>
	<entry>
		<id>http://coderwiki.org/index.php?title=Equal_to_operator&amp;diff=32&amp;oldid=prev</id>
		<title>Dylan: new</title>
		<link rel="alternate" type="text/html" href="http://coderwiki.org/index.php?title=Equal_to_operator&amp;diff=32&amp;oldid=prev"/>
		<updated>2025-08-09T10:17:43Z</updated>

		<summary type="html">&lt;p&gt;new&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;One common [[conditional operator]] is the &amp;#039;&amp;#039;&amp;#039;equal to operator&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
This operator will return [[Boolean|true]] if the value on the &amp;#039;&amp;#039;&amp;#039;left&amp;#039;&amp;#039;&amp;#039; is &amp;#039;&amp;#039;&amp;#039;the same as&amp;#039;&amp;#039;&amp;#039; the value on the &amp;#039;&amp;#039;&amp;#039;right&amp;#039;&amp;#039;&amp;#039; of the operator.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
In most languages, the less than operator is represented by a &amp;lt;code&amp;gt;==&amp;lt;/code&amp;gt; symbol. This is different from the [[assignment]] [[Assignment operator|operator]], &amp;lt;code&amp;gt;=&amp;lt;/code&amp;gt; which is used to set the value of a variable.&lt;br /&gt;
&lt;br /&gt;
== Comparison of different types ==&lt;br /&gt;
Most [[programming language|programming languages]] (with the notable exception of [[JavaScript]]) will return [[boolean|false]] if the two values being compared are of a different type.&lt;br /&gt;
&lt;br /&gt;
For example, if we compare the number &amp;lt;code&amp;gt;5&amp;lt;/code&amp;gt; with the string &amp;lt;code&amp;gt;&amp;quot;5&amp;quot;&amp;lt;/code&amp;gt;, the result will be &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt; because the values were of different types.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;See [[JavaScript equal to operator]] for info on how [[JavaScript]] handles the equal to operator(s).&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
boolean a = 7 == 7; // true&lt;br /&gt;
boolean b = 6 == 7; // false&lt;br /&gt;
boolean c = 5 == &amp;quot;5&amp;quot;; // false... unless you&amp;#039;re using JavaScript!&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Dylan</name></author>
	</entry>
</feed>