Core Function Input
From Sputnik Wiki
(Difference between revisions)
(Created page with "<pre> InputC( <expression> ) </pre> === Description === Capture a char typed to console window. === Parameters === ==== expression ==== Optional; A message to display to use...") |
|||
(3 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
<pre> | <pre> | ||
− | + | Input( <prompt> ) | |
</pre> | </pre> | ||
=== Description === | === Description === | ||
− | Capture a | + | Capture a string typed to console window. |
=== Parameters === | === Parameters === | ||
− | ==== | + | ==== prompt ==== |
Optional; A message to display to user. | Optional; A message to display to user. | ||
Line 15: | Line 15: | ||
=== Return Value === | === Return Value === | ||
− | + | The text the user typed. | |
=== Remarks === | === Remarks === | ||
Line 24: | Line 24: | ||
<syntaxhighlight lang="sputnik"> | <syntaxhighlight lang="sputnik"> | ||
− | $c = | + | $c = Input("What is your name? "); |
− | println(" | + | println("Your name is $c"); |
</syntaxhighlight> | </syntaxhighlight> | ||
[[Category:Core Function]] | [[Category:Core Function]] |
Latest revision as of 13:16, 18 June 2015
Input( <prompt> )
Contents |
Description
Capture a string typed to console window.
Parameters
prompt
Optional; A message to display to user.
Return Value
The text the user typed.
Remarks
None.
Example
$c = Input("What is your name? "); println("Your name is $c");