Block Operations (Magic xpa 3.x)
The Block operation encloses a group of procedural operations within a logical block. The execution of all operations in the block is dependent on the Block operation type, and the Condition of the Block operation.
To create a more structured and efficient code it is recommended to use the Block operation. See also Advantages of the Block Operation.
There are four Block operation types:
-
Block If – The basic Block operation.
-
Block Else – The Block Else operation is an extension of the Block If operation, which provides multiple conditions in single block unit.
-
Block While – The Block While operation instructs the Magic xpa engine to repeatedly execute the operation within the block.
-
Block End – The Block End option closes the block. All operations between the Block If and Block End operation belong to a single block unit.
Conditioning operations
The Block operation is used to enclose several operations within a certain condition.
This type of Block operation consists of three parts:
-
Block If
-
Block Else
-
Bock End
Creating a Loop effect
The Block operation is used to perform a group of operations repeatedly, as long as the Bock While condition is met.
This type of Block operation consists of two parts:
The Block operation properties are:
Flow Mode
Flow Direction
Condition (Cnd)