# then clause

The then clause specifies which statements
to execute when the conditional statement evaluates to true.

## Syntax

```
logical.exp then statement.block
```

## Parameter(s)

| logical.exp | Expression to be tested. If it evaluates to nonzero, it is considered true. If it evaluates to 0, it is false. |
| --- | --- |
| then statement.block | Executes the specified statements if the logical expression evaluates to nonzero. |

## See also

- [Boolean evaluation](https://d3codex.com/pickbasic-flashbasic/boolean-evaluation/)
- [else clause](https://d3codex.com/pickbasic-flashbasic/else-clause/)
- [end statement](https://d3codex.com/pickbasic-flashbasic/end-statement/)
- [lock statement](https://d3codex.com/pickbasic-flashbasic/lock-statement/)
- [locked clause](https://d3codex.com/pickbasic-flashbasic/locked-clause/)
- [match relational operator](https://d3codex.com/pickbasic-flashbasic/match-relational-operator/)
- [not() function](https://d3codex.com/pickbasic-flashbasic/not-function/)
- [null statement](https://d3codex.com/pickbasic-flashbasic/null-statement/)
- [onerr clause](https://d3codex.com/pickbasic-flashbasic/onerr-clause/)
- [open statement](https://d3codex.com/pickbasic-flashbasic/open-statement/)
- [readt statement](https://d3codex.com/pickbasic-flashbasic/readt-statement/)
- [Statements and functions](https://d3codex.com/pickbasic-flashbasic/statements-and-functions/)
- [then/else statement blocks](https://d3codex.com/pickbasic-flashbasic/then-else-statement-blocks/)
- [writet statement](https://d3codex.com/pickbasic-flashbasic/writet-statement/)

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