> For the complete documentation index, see [llms.txt](https://docs.newbot.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.newbot.io/conversescript-syntax/boolean.md).

# Boolean

Booleans are written as in Javascript

```typescript
bool = true
bool = false
```

### Logical operators

```typescript
a = 1
b= 2
bool = a > 0 && b > 0
bool = a > 0 || b > 0
```

### The negotiation

```typescript
bool = !(a > 0)
```

```typescript
bool = true
bool = !bool
bool = not bool
```
