ASK

From Smart Box
Jump to navigation Jump to search

Syntax

ASK S/N/T,"prompt string",variable

Description

This command is used to prompt user for a keyboard input. The user can type a string or number. The ASK command is followed by either S to indicate a string, N to indicate a numeric value or T for a time value. The prompt string can be up to 70 characters in length. The response from the user is placed into the variable specified at the end of the command.

Example

ASK N,"How long should the lamp be on for ?",reply
SWITCH ON OUTPUT 1
WAIT reply

Associated keywords