Script statements: Pre-compiler instructions for skipping scriptA particular Automation Engine object type. blocks depending on the installed Automation EngineThis component drives an Automation Engine system and consists of different types of server processes. version.
: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.
The primary UseCase for this statement is the Automic developing environmentAn Environment consists of Deployment Targets which represent your endpoints. Different environments are used for different phases in the software delivery cycle, for example Development, QA, Staging, Production. An environment is typically set up once and used by several applications..
:IFVERS blocks cannot be nested.
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. |
:IFVERS>=11.2
!any script command
:ELSEVERS
!any other script command
:ENDVERS
See also:
Script element | Description |
---|---|
Branching under certain conditions. |
|
:SWITCH... :CASE... :ENDSWITCH | It verifies whether the value of a variableIt stores or retrieves values dynamically at runtime. An individual Automation Engine object type. complies with certain values and depending on the result, it runs various statements. |
Script Elements - Read or Modify Objects
About Scripts
Script Elements - Alphabetical Listing
Script Elements - Ordered by Function
Automic Documentation - Tutorials - Automic Blog - Resources - Training & Services - Automic YouTube Channel - Download Center - Support |
Copyright © 2016 Automic Software GmbH |