$ » History » Revision 9
Revision 8 (Per Amundsen, 01/04/2017 11:58 AM) → Revision 9/10 (Per Amundsen, 12/24/2019 12:48 PM)
_Added in 1.9.0_
*<notextile>$?*!N="message"</notextile>*
Prompts the user for input and returns the result.
_See also [[$input]]._
_Can be prefixed with # to ensure the resulted text starts with a channel prefix._
*Parameters*
<notextile>*</notextile> - Use a password Editbox.
<notextile>!</notextile> - Use a yes/no dialog which will return [[$true]] if user clicks yes, otherwise [[$false]].
="message" - Message to display.
N - Try to use the Nth token as the result text.
*Example*
<pre>
; Ask the user for his name and print the result.
//echo $?="What is your name?"
; Ask the user for his password and print the result.
//echo $?*="What is your password?"
; Ask the use to continue with a yes/no dialog.
//echo $?!="Do you want to continue?"
; Ask for the second token.
//tokenize 44 a,b,c | echo -ag Ths second token is $?2
</pre>