---
name: "and2"
section: "9"
platform: "linux"
package: "linuxcnc-uspace"
version: "1:2.9.4-2+deb13u1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/and2"
---

# and2(9)

Two-input AND gate

## NAME

and2 - Two-input AND gate

## SYNOPSIS

**loadrt and2 \[count=*N*\|names=*name1*\[,*name2...*\]\]**

## FUNCTIONS

- **and2.***N*

  ## PINS

- **and2.*N*.in0 bit in**

  - **and2.*N*.in1 bit in**

  - **and2.*N*.out bit out**

  The **out** pin is computed from the value of the **in0** and **in1** pins according to the following rule:

- **in0=TRUE in1=TRUE**

  **out=TRUE**

- Otherwise,

  **out=FALSE**

## SEE ALSO

[**logic**(9)](/logic/9.md), [**lut5**(9)](/lut5/9.md), [**not**(9)](/not/9.md), [**or2**(9)](/or2/9.md), [**xor2**(9)](/xor2/9.md).

## AUTHOR

Jeff Epler

## LICENSE

GPL
