Salesforce

Init (Magic xpa 4.x)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

Init (Magic xpa 4.x)

An initialization expression that sets the value of the variable.

At runtime, Magic xpa evaluates the expression and assigns the resulting value as the initial value the variable will contain when it is created. The default value is 0, which means that there is no Init expression for this variable.

Init values are not available in the Task Prefix logical unit.

If the value is based on other variables, if will be recomputed for every modification of these variables.

The Init property is the way to assign a value computed by an expression to a variable in Magic xpa, just as you would assign a formula to the cell of a spreadsheet.

The Init expression does not need an '=' in it. The assignment is made implicitly by Magic xpa. For example, if you need to initialize the variable 'Order Sum' with 'Price * Quantity', specify the Init expression for the Virtual variable named Order Sum simply as 'Price * Quantity'.

Related Topics

Reference
Attachment 
Attachment