<?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%3ALessthanequal</id>
	<title>TI-BASIC:Lessthanequal - 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%3ALessthanequal"/>
	<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=TI-BASIC:Lessthanequal&amp;action=history"/>
	<updated>2026-04-21T06:15:20Z</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:Lessthanequal&amp;diff=584&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:Lessthanequal&amp;diff=584&amp;oldid=prev"/>
		<updated>2016-02-24T18:08:33Z</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=LESSTHANEQUAL.PNG&lt;br /&gt;
|summary=Returns true if value1 is less than or 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;
# 6 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 ≤ (less than equal) operator takes two numbers, variables, or expressions, and tests to see if the first one has a value less than or equal to the second one. It will return 1 if it is less than or equal to, and 0 if it is 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;
            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;
            {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;
Unfortunately, ≤ 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:Greaterthan|&amp;gt;]] (greater than)&lt;br /&gt;
* [[TI-BASIC:Greaterthanequal|≥]] (greater than equal)&lt;br /&gt;
* [[TI-BASIC:Lessthan|&amp;lt;]] (less than)[[Category:TI-BASIC]]&lt;br /&gt;
[[Category:TIBD]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>