NOT

Contents


not is used to define the "logic negation" of a logic value.

 

Syntax

    not expr

 

Parameters

Element

Description

Restrictions

expr

expression_logique.

None.

 

Examples

   # Test : is there I <> 1 ?
    If not ( I = 1 )
           Infbox "The condition I=1 is not met"
    Endif
   # In this case you could have written If I<>1...

 

Description and comments

not gives a logic result (0->false, 1->true) dependent on a logic expression having true (non null) or false (null) values, in accordance with the following truth table:

expr

not expr

FALSE
TRUE

TRUE (=1)
FALSE (=0)

Comment

When a formula is entered containing an ‘not‘ in a mask or a routine, for example, the keyword recognition phase replaces this keyword with the equivalent character '!'; thus you may write either: not expr ou ! expr

 

Associated errors

Error

Description

ERMODE (10)

The arguments are not numerical.

 

Associated key words

AND - OR - XOR


CONTENTS


Copyright © Sage 1999 - 2007