Optionally prompts for input, reads characters until an enter is encountered and assigns the character string without the enter to a variable.
The command has the following syntax:
accept [prompt] to var [-hidden]
(Optional) Specifies a character string to display.
Name of variable to assign the string holding the read characters to.
(Optional) Masks the input string to enter a password.
Examples
Read a string and assign it to the variable name:
accept "Enter your name: " to name
Mask input to enter a password:
accept "Enter password:" to password -hidden
Copyright © 2013 CA. All rights reserved. |
|