Project

General

Profile

$ » History » Version 7

Per Amundsen, 06/14/2016 07:48 AM

1 1 Per Amundsen
_Added 1.9.0_
2
3 7 Per Amundsen
*<notextile>$?*!N="message"</notextile>*
4 1 Per Amundsen
5
Prompts the user for input and returns the result.
6
7
_See also [[$input]]._
8
9
*Parameters*
10
11 2 Per Amundsen
<notextile>*</notextile> - Use a password Editbox.
12
<notextile>!</notextile> - Use a yes/no dialog which will return [[$true]] if user clicks yes, otherwise [[$false]].
13 4 Per Amundsen
="message" - Message to display.
14 5 Per Amundsen
N - Try to use the Nth token as the result text.
15 1 Per Amundsen
16
*Example*
17
18
<pre>
19
; Ask the user for his name and print the result.
20
//echo $?="What is your name?"
21
22
; Ask the user for his password and print the result.
23
//echo $?*="What is your password?"
24
25
; Ask the use to continue with a yes/no dialog.
26
//echo $?!="Do you want to continue?"
27 6 Per Amundsen
28
; Ask for the second token.
29
//tokenize 44 a,b,c | echo -ag Ths second token is $?2
30 1 Per Amundsen
</pre>