<?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%2FAsk</id>
		<title>Shell Commands/Ask - 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%2FAsk"/>
		<link rel="alternate" type="text/html" href="https://library.morph.zone/index.php?title=Shell_Commands/Ask&amp;action=history"/>
		<updated>2026-05-13T02:15:22Z</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/Ask&amp;diff=1904&amp;oldid=prev</id>
		<title>JPV: Created page with &quot;'''Ask [S]''' - Displays a question at the execution of a script  PROMPT/A  &lt;nowiki&gt; PROMPT - Text (question) to display.&lt;/nowiki&gt; Ask displays a question and waits for an ans...&quot;</title>
		<link rel="alternate" type="text/html" href="https://library.morph.zone/index.php?title=Shell_Commands/Ask&amp;diff=1904&amp;oldid=prev"/>
				<updated>2015-03-02T17:33:27Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;Ask [S]&amp;#039;&amp;#039;&amp;#039; - Displays a question at the execution of a script  PROMPT/A  &amp;lt;nowiki&amp;gt; PROMPT - Text (question) to display.&amp;lt;/nowiki&amp;gt; Ask displays a question and waits for an ans...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;'''Ask [S]''' - Displays a question at the execution of a script&lt;br /&gt;
&lt;br /&gt;
PROMPT/A&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
PROMPT - Text (question) to display.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
Ask displays a question and waits for an answer.&lt;br /&gt;
This answer can be 'Y' (Yes), 'N' (No) or nothing (ie: user simply&lt;br /&gt;
pressed [return]). If user answers nothing, Ask will consider the answer&lt;br /&gt;
as being negative. To indicate to other commands the answer received,&lt;br /&gt;
Ask will set the condition flag to a specific value (see IF command):&lt;br /&gt;
if the answer is No, the falg is set to 5 (WARN), 0 Otherwise&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
SYS:&amp;gt; Type my_batch_file&lt;br /&gt;
Ask &amp;quot;Do you own a Pegasos ? (YES/NO) &amp;quot;&lt;br /&gt;
If Warn&lt;br /&gt;
    Echo &amp;quot;You answered Yes.&amp;quot;&lt;br /&gt;
Else&lt;br /&gt;
    Echo &amp;quot;You answered No.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
SYS:&amp;gt; Execute my_batch_file&lt;br /&gt;
Do you own a Pegasos ? (YES/NO) yes&lt;br /&gt;
You answered Yes.&lt;br /&gt;
SYS:&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;/div&gt;</summary>
		<author><name>JPV</name></author>	</entry>

	</feed>