<< Prev        Next >>

ID : 630

And Operator

Function

To obtain logical AND of 2 expressions.

Syntax

expression1 And expression2

Guaranteed entry

expression1
Designate a conditional expression or numeric data.
expression2
Designate a conditional expression or numeric data.

Return value

Return the logical AND by integer type data.

Description

The logical AND is obtained by bit operation.

expression1 expression2 result
False False False
False True False
True False False
True True True

Bit operation

This operator also performs bitwise comparison with corresponding bits in 2 formulas. Corresponding bits in the operation result result are set according to the next truth value table.

expression1 expression2 result
0 0 0
0 1 0
1 0 0
1 1 1

Attention

-

Example

-

ID : 630

<< Prev        Next >>