Project

General

Profile

Actions

$ » History » Revision 7

« Previous | Revision 7/10 (diff) | Next »
Per Amundsen, 06/14/2016 07:48 AM


Added 1.9.0

$?*!N="message"

Prompts the user for input and returns the result.

See also $input.

Parameters

* - Use a password Editbox.
! - 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

; 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

Updated by Per Amundsen over 8 years ago · 7 revisions

Also available in: PDF HTML TXT