Script Function Reference

Function Reference >Script Function Reference >Console Functions>readString

readString

readString recieves an input string from the user in the prompt.

readString()

Parameters

readString has no parameters

Return Value

readString will return the string entered by the user.

Example

function example()
	outputString("Enter a string\n: ")
	string = readString()
	clearOutput()
	outputString("You entered " .. string)
end