Back to main page

# $and

## Concept:

$and expresses the boolean AND operation. To be specific, $and expresses the 'white box'
version of the AND operation, where Aito will look inside the proposition
in order to see its components. Aito will then use these components separately
in the statistical reasoning.

This makes the following expressions equivalent:

```
{ "a" : "text", "b" : 0 }
{ "$and" : [ { "a":"text" }, { "b": 0 } ] }
```

## Format:

```
{ "$and" : [ Proposition, ... ] }
```

## See also:

## Example 1:

```
{ "$and" : [ { "price" : { "$gt" : 100 } }, { "tags" : "laptop" } ] }
```