<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.ice-online.com/index.php?action=history&amp;feed=atom&amp;title=ASK</id>
	<title>ASK - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.ice-online.com/index.php?action=history&amp;feed=atom&amp;title=ASK"/>
	<link rel="alternate" type="text/html" href="https://wiki.ice-online.com/index.php?title=ASK&amp;action=history"/>
	<updated>2026-04-14T23:40:59Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://wiki.ice-online.com/index.php?title=ASK&amp;diff=782&amp;oldid=prev</id>
		<title>ConvertBot: prompts for a keyboard entry of results parameter value</title>
		<link rel="alternate" type="text/html" href="https://wiki.ice-online.com/index.php?title=ASK&amp;diff=782&amp;oldid=prev"/>
		<updated>2020-04-27T22:04:55Z</updated>

		<summary type="html">&lt;p&gt;prompts for a keyboard entry of results parameter value&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;prompts for a keyboard entry of results parameter value&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;LABEL&amp;gt;    Label of the result parameter to receive answer&lt;br /&gt;
&amp;lt;PROMPT&amp;gt;   A formattable prompt string with optional default in []s.&lt;br /&gt;
&lt;br /&gt;
This is used to get input from the keyboard into the results table with an&lt;br /&gt;
informative prompt string - normally for use in macros.  To simply print a&lt;br /&gt;
message, use the SAY command.&lt;br /&gt;
&lt;br /&gt;
The result should be strongly typed using a prefix to the result label name,&lt;br /&gt;
i.e. F:FREQ or S:NAME (see HELP RESULTS for more result typing info).&lt;br /&gt;
If it isn't typed then the type of the result will be a string.&lt;br /&gt;
&lt;br /&gt;
A special type, Q: is recognized by ASK to treat the input string as if it were&lt;br /&gt;
enter spaces as well.&lt;br /&gt;
&lt;br /&gt;
Prompt strings should be enclosed in double quotes (&amp;quot;&amp;quot;) to preserve case and&lt;br /&gt;
allow spaces in the prompt. The trailing quote may be omitted.  If no answer is&lt;br /&gt;
given, a value surrounded by [] will be used as a default answer.&lt;br /&gt;
&lt;br /&gt;
If no answer is given and no default is specified in brackets, ASK will&lt;br /&gt;
continue prompting until valid input is received.  You can override&lt;br /&gt;
this with the /ONCE switch, which prompts only once and takes whatever&lt;br /&gt;
input is given.  If the user simply hit RETURN and you were using /ONCE,&lt;br /&gt;
the &amp;lt;label&amp;gt; will contain zero if typed as numeric and the empty string&lt;br /&gt;
if typed as ASCII.&lt;br /&gt;
&lt;br /&gt;
Examples:&lt;br /&gt;
  * A typical call to ASK might have the form:&lt;br /&gt;
      nM&amp;gt; ASK F:FREQ &amp;quot;Input the desired frequency shift in Hz [5.00] :&amp;quot;&lt;br /&gt;
    where if the user presses enter FREQ is assigned the value 5.0&lt;br /&gt;
&lt;br /&gt;
  * The command is more attractive when combined with result substitution&lt;br /&gt;
    as follows:&lt;br /&gt;
&lt;br /&gt;
      nM&amp;gt; ASK F:FREQN &amp;quot;Enter the pass ^NPASS frequency to shift by [^FREQD] :&amp;quot;&lt;br /&gt;
&lt;br /&gt;
    When executed, the strings preceded by the caret ^ will be interpreted&lt;br /&gt;
    as results parameters, and assuming the parameters NPASS and FREQD are&lt;br /&gt;
    defined as 5 and 5.6420 respectively, the user will see:&lt;br /&gt;
&lt;br /&gt;
       'Enter the pass 5 frequency to shift by [5.6420] :'&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Switches:&lt;br /&gt;
  /ONCE - Ask only one time, even if nothing is entered or defaulted [DEF=FALSE]&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: SAY&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:NXM_Explain]]&lt;/div&gt;</summary>
		<author><name>ConvertBot</name></author>
		
	</entry>
</feed>