<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://learn.cemetech.net/index.php?action=history&amp;feed=atom&amp;title=TI-BASIC%3AEqual</id>
	<title>TI-BASIC:Equal - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://learn.cemetech.net/index.php?action=history&amp;feed=atom&amp;title=TI-BASIC%3AEqual"/>
	<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=TI-BASIC:Equal&amp;action=history"/>
	<updated>2026-04-17T18:40:43Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.3</generator>
	<entry>
		<id>http://learn.cemetech.net/index.php?title=TI-BASIC:Equal&amp;diff=701&amp;oldid=prev</id>
		<title>Maintenance script: Initial automated import</title>
		<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=TI-BASIC:Equal&amp;diff=701&amp;oldid=prev"/>
		<updated>2016-02-24T18:14:17Z</updated>

		<summary type="html">&lt;p&gt;Initial automated import&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Template:TI-BASIC:Command&lt;br /&gt;
|picture=EQUAL.PNG&lt;br /&gt;
|summary=Returns true if value1 is equal to value2.&lt;br /&gt;
|syntax=&amp;#039;&amp;#039;value1&amp;#039;&amp;#039;=&amp;#039;&amp;#039;value2&amp;#039;&amp;#039;&lt;br /&gt;
|location=Press:&lt;br /&gt;
# 2nd TEST to access the test menu.&lt;br /&gt;
# 1 to select =, or use arrows.&lt;br /&gt;
|compatibility=TI-83/84/+/SE&lt;br /&gt;
|size=1 byte&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
The = (equal) operator takes two numbers, variables, or expressions, and tests to see if they are equal to each other. It will return 1 if they are, and 0 if they are not. When determining the order of operations, = will be executed after the [[TI-BASIC:Operators#math|math]] operators, but it will be executed before the [[TI-BASIC:Operators#logical|logical]] operators and in the order that it appears from left to right with the other [[TI-BASIC:Operators#relational|relational]] operators.&lt;br /&gt;
&lt;br /&gt;
 :1=0&lt;br /&gt;
            0&lt;br /&gt;
 &lt;br /&gt;
 :DelVar X3→Y&lt;br /&gt;
 :X=Y&lt;br /&gt;
            0&lt;br /&gt;
&lt;br /&gt;
= Advanced Uses =&lt;br /&gt;
&lt;br /&gt;
Just like the other relational operators, = can take real numbers and lists for variables. In order to compare the lists, however, both must have the same dimensions; if they don&amp;#039;t, the calculator will throw a [[TI-BASIC:Errors#dimmismatch|ERR:DIM MISMATCH]] error. When comparing a real number to a list, the calculator will actually compare the number against each element in the list and return a list of 1s and 0s accordingly.&lt;br /&gt;
&lt;br /&gt;
 :{2,4,6,8}={1,3,5,7&lt;br /&gt;
            {0 0 0 0}&lt;br /&gt;
 :5={1,2,3,4,5&lt;br /&gt;
            {0 0 0 0 1}&lt;br /&gt;
&lt;br /&gt;
Besides real numbers and lists, = also allows you compare strings, matrices, and complex numbers. However, the variables must be of the same type, otherwise the calculator will throw a [[TI-BASIC:Errors#datatype|ERR:DATA TYPE]] error; and just like with lists, both matrices must have the same dimensions, otherwise you will get a [[TI-BASIC:Errors#dimmismatch|ERR:DIM MISMATCH]] error.&lt;br /&gt;
&lt;br /&gt;
 :[[TI-BASIC:1,2,3|1,2,3]]=[[1,2,3&lt;br /&gt;
            1&lt;br /&gt;
 :&amp;quot;HELLO&amp;quot;=&amp;quot;WORLD&lt;br /&gt;
            0&lt;br /&gt;
 :(3+4i)=(5-2i)    (the parentheses are added for clarity)&lt;br /&gt;
            0&lt;br /&gt;
&lt;br /&gt;
= Optimization =&lt;br /&gt;
&lt;br /&gt;
When the only values that are possible for a variable are 1 and 0, you can get rid of the = sign and simply use the variable by itself.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 :If X=1&lt;br /&gt;
 can be&lt;br /&gt;
 :If X&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Error Conditions =&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;[[TI-BASIC:Errors#datatype|ERR:DATA TYPE]]&amp;#039;&amp;#039;&amp;#039; is thrown if you try to compare two different kinds of variables, such as a string and number or a list and matrix.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;[[TI-BASIC:Errors#dimmismatch|ERR:DIM MISMATCH]]&amp;#039;&amp;#039;&amp;#039; is thrown if you try to compare two lists or matrices that have different dimensions.&lt;br /&gt;
&lt;br /&gt;
= Related Commands =&lt;br /&gt;
&lt;br /&gt;
* [[TI-BASIC:Notequal|≠]] (not equal)&lt;br /&gt;
* [[TI-BASIC:Greaterthan|&amp;gt;]] (greater than)&lt;br /&gt;
* [[TI-BASIC:Greaterthanequal|≥]] (greater than equal)&lt;br /&gt;
* [[TI-BASIC:Lessthan|&amp;lt;]] (less than)&lt;br /&gt;
* [[TI-BASIC:Lessthanequal|≤]] (less than equal)[[Category:TI-BASIC]]&lt;br /&gt;
[[Category:TIBD]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>