<?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%3ASK%3AConditionals</id>
	<title>TI-BASIC:SK:Conditionals - 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%3ASK%3AConditionals"/>
	<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=TI-BASIC:SK:Conditionals&amp;action=history"/>
	<updated>2026-04-30T02:06:55Z</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:SK:Conditionals&amp;diff=1737&amp;oldid=prev</id>
		<title>Maintenance script: Automated internal link correction</title>
		<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=TI-BASIC:SK:Conditionals&amp;diff=1737&amp;oldid=prev"/>
		<updated>2016-02-25T00:57:16Z</updated>

		<summary type="html">&lt;p&gt;Automated internal link correction&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 00:57, 25 February 2016&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-l110&quot;&gt;Line 110:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 110:&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;{{Template:TI-BASIC:Next-prev&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;{{Template:TI-BASIC:Next-prev&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;|prevpage = TI-BASIC:SK:&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Logic-operations&lt;/del&gt;&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;|prevpage = TI-BASIC:SK:&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Logic_Operations&lt;/ins&gt;&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;div&gt;|prevtitle = Logic Operations&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;|prevtitle = Logic Operations&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;div&gt;|tocpage = TI-BASIC:Starter_Kit&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;|tocpage = TI-BASIC:Starter_Kit&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;div&gt;|toctitle = Table of Contents&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;|toctitle = Table of Contents&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;|nextpage = TI-BASIC:SK:&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Loops-optimize&lt;/del&gt;&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;|nextpage = TI-BASIC:SK:&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Loops_Optimize&lt;/ins&gt;&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;div&gt;|nexttitle = Loops Optimization}}[[Category:TI-BASIC]]&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;|nexttitle = Loops Optimization}}[[Category:TI-BASIC]]&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;div&gt;[[Category:TIBD]]&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;[[Category:TIBD]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
	<entry>
		<id>http://learn.cemetech.net/index.php?title=TI-BASIC:SK:Conditionals&amp;diff=1686&amp;oldid=prev</id>
		<title>Maintenance script: Automated internal link correction</title>
		<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=TI-BASIC:SK:Conditionals&amp;diff=1686&amp;oldid=prev"/>
		<updated>2016-02-25T00:53:45Z</updated>

		<summary type="html">&lt;p&gt;Automated internal link correction&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 00:53, 25 February 2016&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-l110&quot;&gt;Line 110:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 110:&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;{{Template:TI-BASIC:Next-prev&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;{{Template:TI-BASIC:Next-prev&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;|prevpage = &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;sk&lt;/del&gt;:&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;logic&lt;/del&gt;-operations&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;|prevpage = &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;TI-BASIC&lt;/ins&gt;:&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;SK:Logic&lt;/ins&gt;-operations&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;div&gt;|prevtitle = Logic Operations&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;|prevtitle = Logic Operations&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;|tocpage = &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;starter&lt;/del&gt;-&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;kit&lt;/del&gt;&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;|tocpage = &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;TI&lt;/ins&gt;-&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;BASIC:Starter_Kit&lt;/ins&gt;&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;div&gt;|toctitle = Table of Contents&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;|toctitle = Table of Contents&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;|nextpage = &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;sk&lt;/del&gt;:&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;loops&lt;/del&gt;-optimize&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;|nextpage = &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;TI-BASIC&lt;/ins&gt;:&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;SK:Loops&lt;/ins&gt;-optimize&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;div&gt;|nexttitle = Loops Optimization}}[[Category:TI-BASIC]]&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;|nexttitle = Loops Optimization}}[[Category:TI-BASIC]]&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;div&gt;[[Category:TIBD]]&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;[[Category:TIBD]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
	<entry>
		<id>http://learn.cemetech.net/index.php?title=TI-BASIC:SK:Conditionals&amp;diff=990&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:SK:Conditionals&amp;diff=990&amp;oldid=prev"/>
		<updated>2016-02-24T18:28:57Z</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;= Conditionals =&lt;br /&gt;
Conditionals in Ti-BASIC are slightly different than other programming language&amp;#039;s conditionals. The first thing you need to understand is that an IF condition tests a number. So:&lt;br /&gt;
&lt;br /&gt;
 :IF 0&lt;br /&gt;
 This won&amp;#039;t show up&lt;br /&gt;
 :IF 1&lt;br /&gt;
 This will show up&lt;br /&gt;
 :IF 2&lt;br /&gt;
 This will show up&lt;br /&gt;
&lt;br /&gt;
When the IF condition tests the 0 number it returns false, so the code underneath it won&amp;#039;t be displayed. Now if the IF comes across a 1, it returns true and executes the code that follows. Now you might be asking yourself &amp;quot;And what about the IF 2?&amp;quot; well in every single programming  language the 0 number is equivalent to false and all numbers but 0 are equivalent to true. So when you use an IF condition you are testing if a number is 0 or not 0, if it is false or not false (true) and execute (or not) the instructions that follow.&lt;br /&gt;
&lt;br /&gt;
But what about this:&lt;br /&gt;
&lt;br /&gt;
 :1-&amp;gt;A&lt;br /&gt;
 :IF A=0&lt;br /&gt;
 This won&amp;#039;t show up&lt;br /&gt;
 :IF A=1&lt;br /&gt;
 This will show up&lt;br /&gt;
 :IF A=2&lt;br /&gt;
 This won&amp;#039;t show up&lt;br /&gt;
&lt;br /&gt;
Well in this case you may think the IF statement isn&amp;#039;t testing a number but a condition. Well you are wrong. Look at the following piece of code:&lt;br /&gt;
&lt;br /&gt;
 :1=1&lt;br /&gt;
 		1&lt;br /&gt;
 :1=4&lt;br /&gt;
 		0&lt;br /&gt;
&lt;br /&gt;
If you type the 1=1 in the main calculator screen you get a 1,meaning that it is true. If you type 1=4 you get a 0, it is false. So, what we can conclude is very simple: conditions return a number whether they are true or false. When comparing two numbers (or variables) the calculator will see if it is true or false and send a number: 0 if it is false; 1 if it is true; So as you can see, the calculator works a IF condition by calculating the Something = Something condition, return a number and if it 1, execute the following code, if it is 0, it doesn&amp;#039;t.&lt;br /&gt;
&lt;br /&gt;
Now it makes sense doesn&amp;#039;t it? That&amp;#039;s why we talked about IF 0 and IF 1 in the begging.&lt;br /&gt;
So this:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 :1-&amp;gt;A&lt;br /&gt;
 :IF 1&lt;br /&gt;
 Do something&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Is the same as this:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 :IF 1&lt;br /&gt;
 Do something&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Of course the first one can be false if you change the variable&amp;#039;s value, but in this case it is all the same thing.&lt;br /&gt;
&lt;br /&gt;
== Cool examples that use conditions ==&lt;br /&gt;
1. The best example of the use of conditions is the collision code located here: [http://tibasicdev.wikidot.com/sk:movement#toc4 Collision]. It uses conditions to know if the place the character is supposed to go is &amp;quot;walkable&amp;quot; or not.&lt;br /&gt;
&lt;br /&gt;
2. Another rather cool example is the area calculator. You know that an area can&amp;#039;t be negative so the program can&amp;#039;t return a negative area. Take a look at the next example:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 :PROMPT A,B&lt;br /&gt;
 :A*B-&amp;gt;C&lt;br /&gt;
 :IF A&amp;gt;0 AND B&amp;gt;0:THEN&lt;br /&gt;
 :DISP C&lt;br /&gt;
 :ELSE&lt;br /&gt;
 :DISP 0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Looks good doesn&amp;#039;t it? Well but it isn&amp;#039;t. It is true that it correctly displays only positive areas but there&amp;#039;s a simpler way of doing it:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 :PROMPT A,B&lt;br /&gt;
 :A*B*(A&amp;gt;0 AND B&amp;gt;0)-&amp;gt;C&lt;br /&gt;
 :DISP C&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In this case, with only 3 lines of code we do the same thing as above and we save memory. Of course this may seem stupid because it only saves a few bits, but in a bigger game production the bit turn into bytes and then Kilo Bytes and the game becomes very big and unusable.&lt;br /&gt;
Lets just go through the code: The PROMPT asks the user to give some input. Then It calculates A*B and multiplies it be the result of the condition (A&amp;gt;0 AND B&amp;gt;0). So if both are greater then 0, then the condition returns 1 and C becomes A*B. If they aren&amp;#039;t the condition returns 0 and C becomes 0. So they are no negative values!!&lt;br /&gt;
&lt;br /&gt;
3. What if you want to know if a certain pixel of the screen is on? Lets see:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 :45-&amp;gt;X&lt;br /&gt;
 :55-&amp;gt;Y&lt;br /&gt;
 :IF pxl-test(Y,X)&lt;br /&gt;
 Do something&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Using the pxl-test( command and a IF statement we get the job done!! The pxl-test( returns a number (1 or 0) whether the pixel indicated between brackets is on or off.&lt;br /&gt;
&lt;br /&gt;
== Some tips: ==&lt;br /&gt;
Conditions are very handy to test variables and stuff, but have to be used wisely. A very common mistake when using IF conditions is forgetting the THEN after the IF and writing more than one line. See the next example:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 :0-&amp;gt;A&lt;br /&gt;
 :1-&amp;gt;B&lt;br /&gt;
 :IF A≠B&lt;br /&gt;
 :DISP A&lt;br /&gt;
 :DISP B&lt;br /&gt;
 :END&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
WRONG... Here the THEN command is missing so the calculator would return an error like: ERR: SYNTAX, because there was an extra END. Here&amp;#039;s the correct way:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 :0-&amp;gt;A&lt;br /&gt;
 :1-&amp;gt;B&lt;br /&gt;
 :IF A≠B:THEN&lt;br /&gt;
 :DISP A&lt;br /&gt;
 :DISP B&lt;br /&gt;
 :END&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
And there you have it...&lt;br /&gt;
&lt;br /&gt;
{{Template:TI-BASIC:Next-prev&lt;br /&gt;
|prevpage = sk:logic-operations&lt;br /&gt;
|prevtitle = Logic Operations&lt;br /&gt;
|tocpage = starter-kit&lt;br /&gt;
|toctitle = Table of Contents&lt;br /&gt;
|nextpage = sk:loops-optimize&lt;br /&gt;
|nexttitle = Loops Optimization}}[[Category:TI-BASIC]]&lt;br /&gt;
[[Category:TIBD]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>