<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://library.morph.zone/index.php?action=history&amp;feed=atom&amp;title=Shell_Commands%2FElse</id>
		<title>Shell Commands/Else - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://library.morph.zone/index.php?action=history&amp;feed=atom&amp;title=Shell_Commands%2FElse"/>
		<link rel="alternate" type="text/html" href="https://library.morph.zone/index.php?title=Shell_Commands/Else&amp;action=history"/>
		<updated>2026-04-16T19:46:49Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://library.morph.zone/index.php?title=Shell_Commands/Else&amp;diff=1924&amp;oldid=prev</id>
		<title>JPV: Created page with &quot;'''Else''' - Specifies an alternative for an IF statement in a script file.  No Template                                                                              Else must...&quot;</title>
		<link rel="alternate" type="text/html" href="https://library.morph.zone/index.php?title=Shell_Commands/Else&amp;diff=1924&amp;oldid=prev"/>
				<updated>2015-03-03T10:18:38Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;Else&amp;#039;&amp;#039;&amp;#039; - Specifies an alternative for an IF statement in a script file.  No Template                                                                              Else must...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;'''Else''' - Specifies an alternative for an IF statement in a script file.&lt;br /&gt;
&lt;br /&gt;
No Template&lt;br /&gt;
                                                                            &lt;br /&gt;
Else must be used in conjunction with the If command.                       &lt;br /&gt;
Else is used in an If block of a script to specify an alternative action&lt;br /&gt;
if the If condition is not true. If the If condition is not true,&lt;br /&gt;
execution of the script jumps from the If line to the line after Else;&lt;br /&gt;
all intervening commands are skipped. If the If condition is true,&lt;br /&gt;
the commands immediately following the If statement are executed&lt;br /&gt;
up to the Else. Then, execution skips to the EndIf statement&lt;br /&gt;
that concludes the IF block.&lt;br /&gt;
&lt;br /&gt;
Example: Assume a script, called Display, contains the following block:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
IF exists picfile&lt;br /&gt;
    MultiView picfile&lt;br /&gt;
ELSE&lt;br /&gt;
    ECHO &amp;quot;picfile is not in this directory&amp;quot;&lt;br /&gt;
ENDIF&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
If picfile can be found in the current directory, the MultiView program&lt;br /&gt;
is executed and picfile is displayed on the screen.&lt;br /&gt;
If picfile cannot be found in the current directory, the script skips&lt;br /&gt;
to the ECHO command. The following message is displayed in the Shell window:&lt;br /&gt;
'picfile is not in this directory'&lt;/div&gt;</summary>
		<author><name>JPV</name></author>	</entry>

	</feed>