And

Description:              This function returns the bit-wise AND of its two parameters as a 32-bit unsigned integer.

Returns:                    Numeric

Usage:                       Script or Steady State

Format:                      And(A, B)

Parameters:             A    { numeric }  { required }  { no default: }

                                                Any numeric expression for the first parameter, which is truncated to a 32-bit unsigned number.

                                    B    { numeric }  { required }  { no default: }

                                                Any numeric expression for the second parameter, which is truncated to a 32 bit unsigned number.

Comments:               The parameters and the result can be up to 32 bits long. If either argument is invalid, the result is invalid.

Example:

result = And(0b1010, 0b1100);

This example sets the variable result to 0b1000.

See Also:

Or | Not | Xor | Boolean Logic