> For the complete documentation index, see [llms.txt](https://hyundai-robotics.gitbook.io/hi6-robot-language/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hyundai-robotics.gitbook.io/hi6-robot-language/rl-english/external-comm/tp-console-bar-input/input.md).

# 6.4.1 input

### Description

Use the **input** statement to enter a string as a keystroke of the Teach Pendant and store it in a variable. If not entered by the timeout, proceed to the following statement or branch to the timeout address.

### Syntax

input \<variable>\[,\<timeout>,\<timeout address>]

### Parameter

| Parameter | Description                                                                                                                                         | Remarks |
| --------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | ------- |
| variable  | <p>Variable to receive input. Numbers are also entered as string types. If numerical values are required, convert to int( ) or double( ) functions. |         |

</p><p></p><p></p> |                    |
| timeout         | Maximum time limit                                                                                                                                                       | 0.1\~60.0 sec&#xD; |
| timeout address | Address to branch when timeout is exceeded                                                                                                                               | address            |

### Example

```python
input work_no
input work_no,10
input work_no,10,*timeout
```

![](https://3527803117-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MeFEqbwNTCpximKbwVQ%2F-Mij7zqiydWG6H_ZRk5U%2F-Mij8cOyYrnx4f7T2I7c%2Fimage.png?alt=media\&token=7415ef05-e1a5-4404-9512-ca2482fc27ac)
