> For the complete documentation index, see [llms.txt](https://dbd-ts.gitbook.io/dbdts/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dbd-ts.gitbook.io/dbdts/functions/eval.md).

# $eval

Evals the provided DBD.TS code.

### Usage

```php
$eval[code]
```

### Examples

```javascript
bot.commands.add({
  type: "basicCommand",
  name: "example",
  code: `$onlyForIDs[$botOwnerID;Only $userTag[$botOwnerID] can use that!]
$eval[$message]` //Evals the provided code
})
```
