# All

### **Description**‌

Obsolete function.&#x20;

The All function returns a boolean value indicating whether the predicate expression holds true for all rows in the table.

The Any function can be used to achieve the same result as All.

### **Syntax**

‌The syntax for the All function is:

`All(table, predicate)`

#### ‌**Parameters**

table - the table which is to be checked.

predicate -  the value to be checked in the table if true or not.&#x20;

### **Returns**

‌The All function returns True or False.

### **Example**‌

Let's look at some All function examples and explore how to use the All function.‌

<div align="left"><img src="https://529897662-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtPTgZOYmpJka4jqs1v%2F-MZrkHmn5o7bN8xIgia_%2F-MZrlWRz8ePn94npDDYl%2Fquantity.jpg?alt=media&#x26;token=9038e804-957e-476d-8bd9-0eb8cc938279" alt="Example table: orderQuantity"></div>

```
All([a: 1] & [a: 2], {a > 1})
Result: False

All(orderQuantity,{Quantity > 2})
Result: True

All(orderQuantity,{Quantity > 10})
Result: False

The Any function to do the same check:
not Any(orderQuantity where Quantity <= 10)
Result: False
```
