# &&

## Description

Compares one number to another and outputs a

if the two numbers are both non-zero or a if either number is 0.## Examples

## Arguments

### comparison-value [int]

Optional

Sets an initial value to be stored by &&. A number in the right inlet changes the value set by the argument.

## Attributes

### Common Box Attributes

## Messages

### bang

In left inlet: Performs the operation with the numbers currently stored. If there is no argument, && initially holds .

### int

#### Arguments

input
[int]

If the number in both inlets is not

, then the output is . If the number in one or both of the inlets is , then the output is . A number in the left inlet triggers the output. ### (inlet1)

#### Arguments

comparison-value
[int]

In right inlet: The number is compared to the number in the left inlet to determine output but only a number in the left inlet will trigger output.

### float

#### Arguments

input
[float]

Converted to

. ### set

#### Arguments

set-input
[int]

The word

followed by a number will set the input value without causing output. ## Output

### int

If the number in the left inlet and the number in the right inlet (or specified by the argument) are both not

, then the output is . Otherwise, the output is .## See Also

Name | Description |
---|---|

& | |

| | |

|| | |

Max Basic Tutorial 19: Timing | Max Basic Tutorial 19: Timing |