> For the complete documentation index, see [llms.txt](https://docs.yarnspinner.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yarnspinner.dev/2.2/api/csharp/yarn.compiler/yarn.compiler.basicblock/yarn.compiler.basicblock.commandelement.md).

# CommandElement

Class in [BasicBlock](/2.2/api/csharp/yarn.compiler/yarn.compiler.basicblock.md)

Inherits from [`PlayerVisibleContentElement`](/2.2/api/csharp/yarn.compiler/yarn.compiler.basicblock/yarn.compiler.basicblock.playervisiblecontentelement.md)

## Summary

A command that will be executed.

```csharp
public class CommandElement : PlayerVisibleContentElement
```

## Fields

| Name                                                                                                                                                                 | Description              |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------ |
| [CommandText](/2.2/api/csharp/yarn.compiler/yarn.compiler.basicblock/yarn.compiler.basicblock.commandelement/yarn.compiler.basicblock.commandelement.commandtext.md) | The text of the command. |
