---
title: Logic functions
sidebar_label: Logic
---

Boolean logic functions from [`io.deephaven.function.Logic`](/core/javadoc/io/deephaven/function/Logic.html).

| Type     | Name | Signature                                                                                                                                                      | Description                                   |
| -------- | ---- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------- |
| FUNCTION | and  | [Boolean\(Boolean...\)](https://deephaven.io/core/javadoc/io/deephaven/function/Logic.html#and(java.lang.Boolean...))                                          | Ands all of the values in the array together. |
| FUNCTION | and  | [Boolean\(Boolean\[\], Boolean\)](https://deephaven.io/core/javadoc/io/deephaven/function/Logic.html#and(java.lang.Boolean[],java.lang.Boolean))               | Ands all of the values in the array together. |
| FUNCTION | and  | [Boolean\(ObjectVector\)](https://deephaven.io/core/javadoc/io/deephaven/function/Logic.html#and(io.deephaven.vector.ObjectVector))                            | Ands all of the values in the array together. |
| FUNCTION | and  | [Boolean\(ObjectVector, Boolean\)](https://deephaven.io/core/javadoc/io/deephaven/function/Logic.html#and(io.deephaven.vector.ObjectVector,java.lang.Boolean)) | Ands all of the values in the array together. |
| FUNCTION | and  | [Boolean\(boolean...\)](https://deephaven.io/core/javadoc/io/deephaven/function/Logic.html#and(boolean...))                                                    | Ands all of the values in the array together. |
| FUNCTION | not  | [Boolean\[\]\(Boolean...\)](https://deephaven.io/core/javadoc/io/deephaven/function/Logic.html#not(java.lang.Boolean...))                                      | Not of all values in an array.                |
| FUNCTION | not  | [Boolean\[\]\(boolean...\)](https://deephaven.io/core/javadoc/io/deephaven/function/Logic.html#not(boolean...))                                                | Not of all values in an array.                |
| FUNCTION | or   | [Boolean\(Boolean...\)](https://deephaven.io/core/javadoc/io/deephaven/function/Logic.html#or(java.lang.Boolean...))                                           | Ors all of the values in the array together.  |
| FUNCTION | or   | [Boolean\(Boolean\[\], Boolean\)](https://deephaven.io/core/javadoc/io/deephaven/function/Logic.html#or(java.lang.Boolean[],java.lang.Boolean))                | Ors all of the values in the array together.  |
| FUNCTION | or   | [Boolean\(boolean...\)](https://deephaven.io/core/javadoc/io/deephaven/function/Logic.html#or(boolean...))                                                     | Ors all of the values in the array together.  |

## Related documentation

- [Auto-imported functions](./index.md)
