# BASIC 256 - Language Documentation

en:prompt

## Prompt

### Format

prompt ( message )
prompt ( message , default)

### Description

This function displays a message box with an input box and returns a string value of what the user typed in the box. You may set the default value by setting a second string argument.

### Example

    a$ = prompt("What state do you live?","KY")
    if a$ = "KY" then
       print "Kentucky."
    else
       print "Somewhere Else"
    end if

draws

### See Also

Alert, Confirm, Input, Key, Prompt

### History

0.9.9.42 - added statement

en/prompt.txt · Last modified: 2013/01/28 19:42 by admin