<?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%3ANotequal</id>
	<title>TI-BASIC:Notequal - 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%3ANotequal"/>
	<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=TI-BASIC:Notequal&amp;action=history"/>
	<updated>2026-05-28T05:53:50Z</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:Notequal&amp;diff=1196&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:Notequal&amp;diff=1196&amp;oldid=prev"/>
		<updated>2016-02-24T18:39:35Z</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=NOTEQUAL.PNG&lt;br /&gt;
|summary=Returns true if value1 is not 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;
# 2 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 ≠ (not equal) operator takes two numbers, variables, or expressions, and tests to see if they are not equal to each other. It will return 1 if they are not, and 0 if they are. 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;
            1&lt;br /&gt;
 &lt;br /&gt;
 :DelVar X3→Y&lt;br /&gt;
 :X≠Y&lt;br /&gt;
            1&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;
            {1 1 1 1}&lt;br /&gt;
 :5≠{1,2,3,4,5&lt;br /&gt;
            {1 1 1 1 0}&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]]≠[[TI-BASIC:1,2,3&lt;br /&gt;
            0&lt;br /&gt;
 :&amp;quot;HELLO&amp;quot;≠&amp;quot;WORLD&lt;br /&gt;
            1&lt;br /&gt;
 :(3+4i)≠(5-2i)    (the parentheses are added for clarity)&lt;br /&gt;
            1&lt;br /&gt;
&lt;br /&gt;
= Optimization =&lt;br /&gt;
&lt;br /&gt;
Because the calculator treats every nonzero value as true and zero as false, you don&amp;#039;t need to compare if a variable&amp;#039;s value is nonzero. Instead, you can just put the variable by itself.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 :If C≠0&lt;br /&gt;
 can be&lt;br /&gt;
 :If_C&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If_You_Are_Struggling_To_Understand_Why_That_Makes_Sense,_An_Easy_Way_To_Look_At_It_Is_That_It_Is_Just_Another_Form_Of_[[subtract|subtraction]]. The statement will only be false if C is equal to zero, since 0-0=0. But if C is something else, such as 5, then 5-0=5, which is true. This isn&amp;#039;t really an optimization, except for when the number you are subtracting is zero.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 :If A≠5&lt;br /&gt;
 can be&lt;br /&gt;
 :If A-5&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:Equal|=]] (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>