This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
en:input [2016/01/01 22:41] 127.0.0.1 external edit |
en:input [2020/11/22 21:31] (current) admin |
||
---|---|---|---|
Line 1: | Line 1: | ||
===== Input (Statement) ===== | ===== Input (Statement) ===== | ||
==== Format ==== | ==== Format ==== | ||
- | **input** | + | **input** |
- | **input** | + | **input** |
- | **input** | + | **input** [[expressions|prompt]], [[arrays|array_variable]] [ [[integerexpressions|index]] ]\\ |
- | **input** | + | **input** |
- | **input** | + | **input** |
- | **input** | + | **input** |
- | **input** | + | |
- | **input** | + | **input |
- | **input** | + | **input |
- | **input** | + | **input float** [[expressions|prompt]], |
- | **input** | + | **input |
- | **input** | + | **input |
+ | **input | ||
+ | |||
+ | **input integer** [[expressions|prompt]], [[variables|variable]]\\ | ||
+ | **input integer** [[variables|variable]]\\ | ||
+ | **input integer** [[expressions|prompt]], | ||
+ | **input | ||
+ | **input integer** [[expressions|prompt]], [[arrays|array_variable]] [ [[integerexpressions|row_index]], | ||
+ | **input integer** [[arrays|array_variable]] [ [[integerexpressions|row_index]], | ||
+ | |||
+ | **input string** [[expressions|prompt]], | ||
+ | **input string** [[variables|variable]]\\ | ||
+ | **input string** [[expressions|prompt]], | ||
+ | **input | ||
+ | **input string** [[expressions|prompt]], [[arrays|array_variable]] [ [[integerexpressions|row_index]], | ||
+ | **input string** [[arrays|array_variable]] [ [[integerexpressions|row_index]], | ||
==== Description ==== | ==== Description ==== | ||
- | Waits for the user to type a line of text into the text output window. | + | Waits for the user to type a line of text into the text output window. |
- | User may optionally be prompted for the input by // | + | |
- | If a numeric variable is specified and non-numeric data is entered a zero will be assigned to the numeric | + | |
- | References to array elements may also be specified. | + | |
+ | Using just INPUT, if the user types a valid number it will be converted and stored as either an integer or a float. | ||
+ | |||
+ | You may force the type conversion by specifying INPUT FLOAT, INPUT INTEGER, or INPUT STRING. \\ | ||
+ | |||
+ | User may optionally be prompted for the input by [[expressions|prompt]].\\ | ||
+ | References to array elements may also be specified. | ||
==== See Also ==== | ==== See Also ==== | ||
{{page> | {{page> | ||
+ | |||
+ | |||
+ | ==== History ==== | ||
+ | |1.99.99.14|Added INPUT FLOAT, INPUT INTEGER, INPUT STRING and made INPUT try to assign variable the correct type (integer, float, or string) based upon the user entry.| | ||
+ | |||