# field command

The field BASIC program prints out the
 *n*th word in a list of words. This is useful when
combined with the TCL shell variables.

## Syntax

```
field n list.of.words
```

## Example(s)

```
:field 3 one two three four
three
```

```
:field 2 @‘count md‘
1635
```

## See also

- [@ shell variable](https://d3codex.com/tcl/shell-variable/)
- [ldf macro](https://d3codex.com/tcl/ldf-macro/)
- [listdict command](https://d3codex.com/tcl/listdict-command/)
- [Options (TCL)](https://d3codex.com/tcl/options-tcl/)
- [Selection criteria](https://d3codex.com/access/selection-criteria/)

---
Source: https://d3codex.com/tcl/field-command/ - part of the D3Codex reference.
