| xHarbour Reference Documentation > Operator Reference |
![]() |
![]() |
![]() |
Logical NOT operator (unary).
! <lCondition> .NOT. <lCondition>
The .NOT. operator (alternatively "!" as an abbreviation) is a unary logical operator that negates the value of its operand. This yields the logical inverse of <lCondition>.
| See also: | .AND., .OR. |
| Category: | Logical operators , Operators |
| LIB: | xhb.lib |
| DLL: | xhbdll.dll |
// The example shows the logical inverse of the operands:
PROCEDURE Main
? .NOT. (.T.) // result: .F.
? .NOT. (.F.) // result: .T.
? ! 1 > 2 // result: .T.
RETURN
http://www.xHarbour.com