# If Value is Number

> Check if a value is a number.

- ID: `if_value_is_number`
- Type: Condition
- Category: [Math](https://inventor.bot/docs/reference/blocks/math.md)

- Condition block: write `if if_value_is_number(Args{...}) { ... }`, or use it as a `"true"`/`"false"` value. See conditions.

**Inputs**

| Name | Required | Description | Value |
| --- | --- | --- | --- |
| `value` | yes | Value to check. | e.g. `"123"` |
| `if_true` |  | Blocks to run when the value is numeric. | blocks: `func() { ... }` |
| `if_false` |  | Blocks to run when the value is not numeric. | blocks: `func() { ... }` |

**Outputs**

| Name | Description | Value |
| --- | --- | --- |
| `result` | Whether the value is a valid number. | e.g. `"true"` |

**Example**

```go
if if_value_is_number(Args{value: 123}) {
	send_text_message(Args{channel_id: trigger.channel_id, message_content: "Yes"})
}
```