Prompt
From UBot Studio
(Difference between revisions)
(Created page with "$Prompt is a System Function. The function prompts the user to respond and returns the text that was typed into the function. == Example == <pre> type ...") |
(→Example) |
||
Line 8: | Line 8: | ||
type text(<username field>, $prompt("Please type your preferred username!"), "Standard") | type text(<username field>, $prompt("Please type your preferred username!"), "Standard") | ||
</pre> | </pre> | ||
+ | |||
[[File:prompt.png]] | [[File:prompt.png]] | ||
+ | |||
The prompt will appear with the instruction to type in a username into the field in the prompt. | The prompt will appear with the instruction to type in a username into the field in the prompt. | ||
Whatever is typed into the field is what the function will return. | Whatever is typed into the field is what the function will return. | ||
+ | |||
[[File:prompt1.png]] | [[File:prompt1.png]] |
Revision as of 16:51, 15 April 2013
$Prompt is a System Function.
The function prompts the user to respond and returns the text that was typed into the function.
Example
type text(<username field>, $prompt("Please type your preferred username!"), "Standard")
The prompt will appear with the instruction to type in a username into the field in the prompt.
Whatever is typed into the field is what the function will return.