次の方法で共有


Logical Operators

Logical operators work with all data types and return a Logical value. The following table lists the logical operators in order of precedence.

Logical Operators

Operator

Action

Code

( )

Expression groups

cVar AND (cVar2 AND cVAR3)

NOT, !

Logical negative

IF NOT cVarA = cVarB

IF ! nVar1 = nVar2

AND

Logical AND

lVar0 AND lVar9

OR

Logical inclusive OR

lVarX OR lVarY

Note

The Not Equal operator ( # ) can be used to perform XOR comparison (such as lVarX # lVarY).

See Also

Reference

BITAND( ) Function

BITNOT( ) Function

BITOR( ) Function

BITXOR( ) Function

Relational Operators

Operators (Visual FoxPro)