Operator .NOT. Foundation
.NOT. operator (unary): logical negation.
Syntax
.NOT. <lCondition>
! <lCondition>
Parameters
<lCondition>
<lCondition> is a logical expression whose value is to be negated.
Description
The .NOT. operator returns the negation of a logical value (the logical inversion of <lCondition>) as a result. The abbreviated form ! can also be used.
Examples
// This example demonstrates use and results of the
// .NOT. operator (the abbreviation for .NOT. is !)
PROCEDURE Main
? .NOT. (.T.) // result: .F.
? ! (.F.) // result: .T.
IF ! File("CUSTOMER.DBF")
? " 'CUSTOMER.DBF' file does not exist"
ENDIF
RETURN
Feedback
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.