2025-10-25 14:50:14 -03:00
# HEAR Keyword
2025-10-25 15:59:06 -03:00
**Syntax**
2025-10-25 14:50:14 -03:00
```
HEAR variable_name
```
2025-10-25 15:59:06 -03:00
**Parameters**
2025-10-25 14:50:14 -03:00
2025-10-25 15:59:06 -03:00
- `variable_name` – Identifier where the user’ s next message will be stored.
2025-10-25 14:50:14 -03:00
2025-10-25 15:59:06 -03:00
**Description**
2025-10-25 14:50:14 -03:00
2025-10-25 15:59:06 -03:00
`HEAR` pauses script execution and waits for the next user input. The received text is assigned to the specified variable, which can then be used in subsequent commands.
**Example (from `start.bas` )**
2025-10-25 14:50:14 -03:00
```basic
2025-10-25 15:59:06 -03:00
HEAR user_input
IF user_input = "help" THEN
TALK "Sure, I can assist with account info, orders, or support."
ENDIF
2025-10-25 14:50:14 -03:00
```
2025-10-25 15:59:06 -03:00
The script waits for the user to type a message, stores it in `user_input` , and then evaluates the condition.