# nselect command

The nselect command selects items that
would fail the selection criteria of a select.
When an output list displays in any of the various select sentences,
the list is built from the contents of the specified attribute.

## Syntax

```
nselect file.reference {item.list} {selection.criteria} {output.specification}
{modifiers}
```

## Example(s)

```
nselect md = "m]"
```
is the same as:

```
select md # "m]"
```
The next example finds the FlashBASIC programs that did
not compile in the bp file:

```
select bp
[404] 78 items selected out of 78 items.

nselect dict bp
[404] 3 items selected out of 78 items.
```
Assume that there are two files with different number
of items in each. Some item-IDs exist in both files, but not all of
them.

First, select the first file, then select the items not
in the second file:

```
select file1
[404] 767 items selected out of 767 items.

nselect file2
[404] 323 items selected.
```
The list contains the items in `file1` that
are not in `file2`.

## See also

- [.readnext command (Runoff)](https://d3codex.com/runoff/dot-readnext-command-runoff/)
- [Active list](https://d3codex.com/definitions/active-list/)
- [begin work statement](https://d3codex.com/pickbasic-flashbasic/begin-work-statement/)
- [AQL command categories](https://d3codex.com/access/aql-command-categories/)
- [compare-list command](https://d3codex.com/tcl/compare-list-command/)
- [copy command](https://d3codex.com/tcl/copy-command/)
- [copy-list command](https://d3codex.com/tcl/copy-list-command/)
- [delete-list command](https://d3codex.com/tcl/delete-list-command/)
- [edit-list command](https://d3codex.com/tcl/edit-list-command/)
- [end command (TCL commands)](https://d3codex.com/tcl/end-command-tcl-commands/)
- [fl command](https://d3codex.com/tcl/fl-command/)
- [get-list command](https://d3codex.com/tcl/get-list-command/)
- [Item list](https://d3codex.com/access/item-list/)
- [nselect command](https://d3codex.com/access/nselect-command/)
- [qselect command](https://d3codex.com/tcl/qselect-command/)
- [readnext statement](https://d3codex.com/pickbasic-flashbasic/readnext-statement/)
- [save-list command](https://d3codex.com/tcl/save-list-command/)
- [Secondary list](https://d3codex.com/definitions/secondary-list/)
- [nselect command](https://d3codex.com/access/nselect-command/)
- [Selection criteria](https://d3codex.com/access/selection-criteria/)
- [Selection processor](https://d3codex.com/definitions/selection-processor/)
- [sort-list command](https://d3codex.com/tcl/sort-list-command/)
- [sselect command](https://d3codex.com/access/sselect-command/)
- [wselect command](https://d3codex.com/tcl/wselect-command/)

---
Source: https://d3codex.com/access/nselect-command/ - part of the D3Codex reference.
