Salesforce

Block Operations (Magic xpa 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

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.

Block Operation Types

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.

Usage

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:

  • Block While

  • Block End

Block Operation Properties

The Block operation properties are:

Reference
Attachment 
Attachment