# capturing clause

The capturing clause resumes the capturing
effect from the previous execute...capturing statements in a FlashBASIC
or BASIC program.

## Syntax

```
capturing [off|on|exp]
```

## Parameter(s)

| off | Turns off the capturing effect from the previous execute...capturing statements in a FlashBASIC or BASIC program. |
| --- | --- |
| on | Resumes the capturing effect. |
| exp | Capturing is turned on if the expression evaluates to nonzero (true) and turned off if it evaluates to 0 (false). |

## Example(s)

system(26) checks to see if capturing is turned on. If capturing is on, this
statement turns it off.

```
if system(26) then capturing off
```

If s evaluates to a number greater than
5, capturing is turned on.

```
capturing s > 5
```

## See also

- [execute statement (UNIX)](https://d3codex.com/pickbasic-flashbasic/execute-statement-unix/)
- [Statements and functions](https://d3codex.com/pickbasic-flashbasic/statements-and-functions/)
- [tcl statement](https://d3codex.com/pickbasic-flashbasic/tcl-statement/)

---
Source: https://d3codex.com/pickbasic-flashbasic/capturing-clause/ - part of the D3Codex reference.
