<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.color64wiki.itchybutt.org/index.php?action=history&amp;feed=atom&amp;title=Enhanced_if_statement</id>
	<title>Enhanced if statement - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.color64wiki.itchybutt.org/index.php?action=history&amp;feed=atom&amp;title=Enhanced_if_statement"/>
	<link rel="alternate" type="text/html" href="https://www.color64wiki.itchybutt.org/index.php?title=Enhanced_if_statement&amp;action=history"/>
	<updated>2026-05-15T02:19:07Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.0</generator>
	<entry>
		<id>https://www.color64wiki.itchybutt.org/index.php?title=Enhanced_if_statement&amp;diff=905&amp;oldid=prev</id>
		<title>Admin at 23:14, 27 February 2026</title>
		<link rel="alternate" type="text/html" href="https://www.color64wiki.itchybutt.org/index.php?title=Enhanced_if_statement&amp;diff=905&amp;oldid=prev"/>
		<updated>2026-02-27T23:14:51Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://www.color64wiki.itchybutt.org/index.php?title=Enhanced_if_statement&amp;amp;diff=905&amp;amp;oldid=605&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://www.color64wiki.itchybutt.org/index.php?title=Enhanced_if_statement&amp;diff=605&amp;oldid=prev</id>
		<title>Admin at 21:34, 18 October 2025</title>
		<link rel="alternate" type="text/html" href="https://www.color64wiki.itchybutt.org/index.php?title=Enhanced_if_statement&amp;diff=605&amp;oldid=prev"/>
		<updated>2025-10-18T21:34:46Z</updated>

		<summary type="html">&lt;p&gt;&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 21:34, 18 October 2025&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-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{DISPLAYTITLE:Enhanced IF Statement}}&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;[[programming features|Programming Features]] - &amp;lt;strong&amp;gt;The Enhanced If/Then Statement&amp;lt;/strong&amp;gt;&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;[[programming features|Programming Features]] - &amp;lt;strong&amp;gt;The Enhanced If/Then Statement&amp;lt;/strong&amp;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;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;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://www.color64wiki.itchybutt.org/index.php?title=Enhanced_if_statement&amp;diff=319&amp;oldid=prev</id>
		<title>Admin: Protected &quot;Enhanced if statement&quot; ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))</title>
		<link rel="alternate" type="text/html" href="https://www.color64wiki.itchybutt.org/index.php?title=Enhanced_if_statement&amp;diff=319&amp;oldid=prev"/>
		<updated>2025-10-06T02:07:22Z</updated>

		<summary type="html">&lt;p&gt;Protected &amp;quot;&lt;a href=&quot;/index.php/Enhanced_if_statement&quot; title=&quot;Enhanced if statement&quot;&gt;Enhanced if statement&lt;/a&gt;&amp;quot; ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))&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 02:07, 6 October 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key wikidb:diff:1.41:old-318:rev-319 --&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://www.color64wiki.itchybutt.org/index.php?title=Enhanced_if_statement&amp;diff=318&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;Programming Features - &lt;strong&gt;The Enhanced If/Then Statement&lt;/strong&gt;  The Color 64 ML adds a powerful set of decision-making commands that supplement the IF/THEN statement.   {| class=&quot;wikitable |- |+Enhanced IF/THEN Statements  ! CMD ! Details |- | IF/THEN/ELSE  | Format: IF &lt;expression&gt; THEN &lt;statements&gt;: £ &lt;statements&gt;   The British Pound character “£” represents “ELSE” in Color 64 Basic.   Example: IF A=5 THEN PRINT &quot;Hello”: £...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.color64wiki.itchybutt.org/index.php?title=Enhanced_if_statement&amp;diff=318&amp;oldid=prev"/>
		<updated>2025-10-06T02:07:14Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;a href=&quot;/index.php/Programming_features&quot; title=&quot;Programming features&quot;&gt;Programming Features&lt;/a&gt; - &amp;lt;strong&amp;gt;The Enhanced If/Then Statement&amp;lt;/strong&amp;gt;  The Color 64 ML adds a powerful set of decision-making commands that supplement the IF/THEN statement.   {| class=&amp;quot;wikitable |- |+Enhanced IF/THEN Statements  ! CMD ! Details |- | IF/THEN/ELSE  | Format: IF &amp;lt;expression&amp;gt; THEN &amp;lt;statements&amp;gt;: £ &amp;lt;statements&amp;gt;   The British Pound character “£” represents “ELSE” in Color 64 Basic.   Example: IF A=5 THEN PRINT &amp;quot;Hello”: £...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[programming features|Programming Features]] - &amp;lt;strong&amp;gt;The Enhanced If/Then Statement&amp;lt;/strong&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Color 64 ML adds a powerful set of decision-making commands that supplement the IF/THEN statement. &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&lt;br /&gt;
|-&lt;br /&gt;
|+Enhanced IF/THEN Statements &lt;br /&gt;
! CMD&lt;br /&gt;
! Details&lt;br /&gt;
|-&lt;br /&gt;
| IF/THEN/ELSE &lt;br /&gt;
| Format: IF &amp;lt;expression&amp;gt; THEN &amp;lt;statements&amp;gt;: £ &amp;lt;statements&amp;gt; &lt;br /&gt;
&lt;br /&gt;
The British Pound character “£” represents “ELSE” in Color 64 Basic. &lt;br /&gt;
&lt;br /&gt;
Example: IF A=5 THEN PRINT &amp;quot;Hello”: £ PRINT &amp;quot;Goodbye&amp;quot; &lt;br /&gt;
&lt;br /&gt;
Result: If A were to equal 5, then &amp;quot;Hello&amp;quot; would be printed; otherwise &amp;quot;Goodbye&amp;quot; would be printed instead. &lt;br /&gt;
|-&lt;br /&gt;
| AND-ELSE &lt;br /&gt;
|A variation of the ELSE statement is the AND-ELSE statement.  This is represented by the characters &amp;#039;!£&amp;#039;.  It behaves the same as the ELSE statement, except that if the expression was TRUE, then the statements after the &amp;#039;!£&amp;#039; are executed ALSO (hence both the first AND the second sections are executed, or ELSE just the second section is executed).   &lt;br /&gt;
&lt;br /&gt;
Example: IF A=5 THEN PRINT &amp;quot;Hello”:!£ PRINT &amp;quot;Goodbye&amp;quot; &lt;br /&gt;
&lt;br /&gt;
Result: If A were to equal 5 then BOTH &amp;quot;Hello&amp;quot; AND &amp;quot;Goodbye&amp;quot; would be printed, but if the statement were false then only &amp;quot;Goodbye&amp;quot; would be printed.  Whatever is after the &amp;#039;!£&amp;#039; is going to be executed regardless of the outcome of the decision. &lt;br /&gt;
|-&lt;br /&gt;
| REDECIDE &lt;br /&gt;
| Format: !+ &amp;lt;expression&amp;gt; or  !- &amp;lt;expression&amp;gt; &lt;br /&gt;
&lt;br /&gt;
These commands use the result of the most recent IF/THEN statement to decide if the expression is to be executed.  The !+ statement will execute only if the last IF/THEN expression was TRUE.  The !- statement will execute only if the last IF/THEN expression was FALSE (hence &amp;#039;+&amp;#039; for TRUE and &amp;#039;-&amp;#039; for FALSE).   &lt;br /&gt;
&lt;br /&gt;
Example: &lt;br /&gt;
 10 IF A=5 THEN PRINT &amp;quot;Hello, &amp;quot;; &lt;br /&gt;
 20 !+PRINT &amp;quot;How Are You?&amp;quot; &lt;br /&gt;
 30 !- PRINT &amp;quot;What is Your Name?&amp;quot; &lt;br /&gt;
&lt;br /&gt;
Result: If A was to equal 5, then both the first and second statements would be executed, which would print &amp;quot;Hello, How Are You?&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Conversely, if A was not 5 then only the REDECIDE-FALSE (the !-) statement would be executed, which would print &amp;quot;What is Your Name?&amp;quot; &lt;br /&gt;
&lt;br /&gt;
You can also use ELSE with the REDECIDE statements.  ELSE will execute if the opposite of the REDECIDE statement is true.   &lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
 10 IF A=5 THEN PRINT&amp;quot;Joe&amp;quot;:£ PRINT&amp;quot;Jim &amp;quot; &lt;br /&gt;
 20 !+ PRINT&amp;quot;Jenna &amp;quot;:£ PRINT&amp;quot;Jessi &amp;quot;&lt;br /&gt;
 30 !- PRINT&amp;quot;Jerry &amp;quot;:£ PRINT&amp;quot;John &amp;quot;&lt;br /&gt;
 40 !+ PRINT&amp;quot;Jack&amp;quot;:£ PRINT&amp;quot;Frank&amp;quot; &lt;br /&gt;
&lt;br /&gt;
Result: If A was to equal 5, then Joe, Jenna, John and Jack’s names would be printed.  Otherwise, Jim, Jessi, Jerry, and Frank’s names would be printed instead. If A was not 5 then &amp;quot;1 2 3 4&amp;quot; would be printed.   &lt;br /&gt;
&lt;br /&gt;
Note that the execution of a REDECIDE statement, or the alteration of a variable that was in the original IF/THEN statement, does NOT change the true or false nature of the most recent IF/THEN. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Next Section: [[ml command set|ML Command Set]]&lt;br /&gt;
&lt;br /&gt;
[[programming features|Programming Features]]&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>