io.in
Syntax
- a = io.in(s)
Get input from the console. s is printed in the console, and then the code waits for interactive input from the keyboard. The return value depends on the characters that are typed. FISH tries to decode the input first as an integer, and then as a floating-point number. The return value will be of these types if the input is a single number that can be decoded with one of these types. In this case, the number should be the only data entered. If the typed characters cannot be interpreted as a single number, the return value will be a string of those characters. The functions
type
andtype.name
can be used to determine the return type.
Was this helpful? ... | Itasca Software © 2024, Itasca | Updated: Dec 19, 2024 |