Core Function Input

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "<pre> InputC( <expression> ) </pre> === Description === Capture a char typed to console window. === Parameters === ==== expression ==== Optional; A message to display to use...")
 
Line 1: Line 1:
 
<pre>
 
<pre>
InputC( <expression> )
+
Input( <expression> )
 
</pre>
 
</pre>
  
 
=== Description ===
 
=== Description ===
  
Capture a char typed to console window.
+
Capture a string typed to console window.
  
 
=== Parameters ===
 
=== Parameters ===
Line 24: Line 24:
  
 
<syntaxhighlight lang="sputnik">
 
<syntaxhighlight lang="sputnik">
$c = InputC(Press any key...");
+
$c = Input("What is your name? ");
println("You typed $c");
+
println("Your name is $c");
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
[[Category:Core Function]]
 
[[Category:Core Function]]

Revision as of 11:44, 29 November 2011

Input( <expression> )

Contents

Description

Capture a string typed to console window.

Parameters

expression

Optional; A message to display to user.

Return Value

None

Remarks

None.

Example

$c = Input("What is your name? ");
println("Your name is $c");
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox