| 
                    
 This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com  | 
            |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 
                 
                
    
    
                 | 
                
					
                    
                         
    4D v20.6
 
Not 
                                
                                
        
 | 
                ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Not ( boolean ) -> Function result | ||||||||
| Parameter | Type | Description | ||||||
| boolean | Boolean | 
             
         | 
        Boolean value to negate | |||||
| Function result | Boolean | 
             
         | 
        Opposite of Boolean | |||||
The Not function returns the negation of boolean, changing True to False or False to True.
This example first assigns True to a variable, then changes the variable value to False, and then back to True.
 vResult:=True ` vResult is set to True
 vResult:=Not(vResult) ` vResult is set to False
 vResult:=Not(vResult) ` vResult is set to True
	Product:  4D
	Theme:  Boolean
	Number:  
        34
        
        
        
	
	Created:  < 4D v6
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	4D Language Reference ( 4D v20)
	
	
	4D Language Reference ( 4D v20.1)
	
	
	
	4D Language Reference ( 4D v20.2)
	
	4D Language Reference ( 4D v20.3)
	
	4D Language Reference ( 4D v20.4)
	
	
	4D Language Reference ( 4D v20.5)
	4D Language Reference ( 4D v20.6)
	
	
	
Add a comment