<?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%3AGreaterthan</id>
	<title>TI-BASIC:Greaterthan - 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%3AGreaterthan"/>
	<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=TI-BASIC:Greaterthan&amp;action=history"/>
	<updated>2026-04-18T15:23:34Z</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:Greaterthan&amp;diff=841&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:Greaterthan&amp;diff=841&amp;oldid=prev"/>
		<updated>2016-02-24T18:21:21Z</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=GREATERTHAN.PNG&lt;br /&gt;
|summary=Returns true if value1 is greater than value2.&lt;br /&gt;
|syntax=&amp;#039;&amp;#039;value1&amp;#039;&amp;#039;&amp;gt;&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;
# 3 to select &amp;gt;, 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 &amp;gt; (greater than) operator takes two numbers, variables, or expressions, and tests to see if the first one has a value greater than the second one. It will return 1 if it is greater, and 0 if it is not. When determining the order of operations, &amp;gt; 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&amp;gt;0&lt;br /&gt;
            1&lt;br /&gt;
 &lt;br /&gt;
 :DelVar X3→Y&lt;br /&gt;
 :X&amp;gt;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, &amp;gt; 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}&amp;gt;{1,3,5,7&lt;br /&gt;
            {1 1 1 1}&lt;br /&gt;
 :5&amp;gt;{1,2,3,4,5&lt;br /&gt;
            {1 1 1 1 0}&lt;br /&gt;
&lt;br /&gt;
Unfortunately, &amp;gt; does not work with strings, matrices, or complex numbers (only [[TI-BASIC:Equal|=]] and [[TI-BASIC:Notequal|≠]] do), and the calculator will actually throw a [[TI-BASIC:Errors#datatype|ERR:DATA TYPE]] error if you try to compare them. In the case of strings, however, it should be pretty obvious why: a string represents a sequence of characters, and does not associate a value to any character, so there is nothing to compare.&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 strings, matrices, or complex numbers.&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 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:Notequal|≠]] (not equal)&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>