:IFVERS [:ELSEVERS] :ENDVERS
Script statements: Pre-compiler instructions for skipping script blocks depending on the installed Automation Engine version.
Syntax
:IFVERS Version
                
[Statements] 
[:ELSEVERS
[Other Statements]]
:ENDVERS
            
| 
                         Syntax  | 
                    
                         Description/Format  | 
                
|---|---|
| Version | 
                         AE version Format: Major[.Minor[.Patch]] without quotes  | 
                
| Statements | 
                         One or more statements that will be executed when the version condition is "True". Format: script statement  | 
                
| Other Statements | 
                         One or more statements that will be executed when the version condition is "False". Format: script statement  | 
                
This script statement was originally introduced to be able to keep initial data objects compatible, during an upgrade scenario with zero downtime.
Note: This script statement is primarily intended for use in Automation Engine development environments.
Note: :IFVERS blocks cannot be nested.
Note: These statements will be automatically treated as comments, if the version information should not fit the one used.
A condition contains one of the following comparison operators:
| 
                         Operator  | 
                    
                         Rule  | 
                
|---|---|
| 
                         =  | 
                    
                         This expression is "True" if at least one of the comparison values equals the Value.  | 
                
| <> | This expression is "True" when none of the comparison values equals the Value. | 
| < > <= >=  | 
                    
                         
 This expression is "True" if one comparison value corresponds to the defined condition.  | 
                
Example
: IFVERS >= 11.2
!any script command
: ELSEVERS
!any other script command
: ENDVERS
See also: