Codebox Operators and

and

logical AND operator

and(in1, in2): out1

Arguments:

Arguments

NameTypeDefaultDescription
in1number

Performs the operation with the value currently stored. If there is no argument, && initially holds 0.

in2number

The value is compared to the value in the left inlet to determine output but only a value in the left inlet will trigger output.

Returns

NameTypeDescription
out1number

If either the value in the left inlet or the value in the right inlet (or specified by the argument) is not 0, then the output is 0. Otherwise, the output is 1.

Aliases

  • logand
  • &&