Library View Topics Framed Contents Revised Topics Previous Topic Next Topic Search Search ResultsPrevious Topic MatchNext Topic Match Notes List Notes Print Download No PDF Handheld DisconnectedHandheld ConnectedHelp

6.1.6.8 Complex Conditions



A complex condition is formed by combining simple conditions, combined conditions, and/or complex conditions with logical operators, or negating these conditions with logical negation.

Each logical operator must be preceded and followed by a space. The following table shows the logical operators and their meanings.


 Table 27. Logical Operators and Their Meanings                            
 Logical  
 Operator 
 Name        
             
 Meaning                                          
                                                  
 AND      
          
 Logical     
 conjunction 
 The truth value is true when both conditions are 
 true.                                            
 OR       
          
          
 Logical     
 inclusive   
 OR          
 The truth value is true when either or both      
 conditions are true.                             
                                                  
 NOT      
          
 Logical     
 negation    
 Reversal of truth value (the truth value is true 
 if the condition is false).                      


   Unless modified by parentheses, the following precedence rules (from
   highest to lowest) apply:

  1. Arithmetic operations
  2. Simple conditions
  3. NOT
  4. AND
  5. OR
    
    
The truth value of a complex condition (whether parenthesized or not) is the truth value that results from the interaction of all the stated logical operators on either of the following:

A complex condition can be either of the following:



Previous Topic Next Topic © Copyright IBM Corp. 1991, 1998

IBM Library Server Copyright 1989, 2005 IBM Corporation. All rights reserved.





Return to library:   z/OS | z/OS.e | TPF | z/VSE | z/VM | IBM Hardware | IBM System z Redbooks
Glossary:   IBM terminology
Publications:   How to order publications
Readers:   Download IBM Library Reader | Download IBM Softcopy Reader | Download Adobe® Acrobat® Reader®
Library management:   Download IBM Softcopy Librarian
Contacts:   Contact z/OS


Adobe, the Adobe logo, Acrobat, the Acrobat logo, and Acrobat Reader are registered trademarks of Adobe Systems incorporated.