@Evaluate

@EVALUATE returns the result of an expression.

DTP Type:

@Evaluate can be assigned to a DTP of type numeric or integer.

Syntax:

@EVALUATE(Value1,Operator,Value2)

Parameters:

Parameter Description
Value1 Design-time prompt or function that returns a numeric value
Operator +, -, /, or *
Value2 Design-time prompt or function that returns a numeric value

Example:

[Eval_num_add]=@EVALUATE([num1], "+",[num2])

Where:

  • [Eval_numadd] is a DTP of type numeric that is not checked prompt.

  • [num1] is a promptable DTP of type numeric.

  • The operator is +.

  • [num2] is a promptable DTP of type numeric.

Assume that the following values are input.

  • [num1]: "100"

  • [num2]: "10"

In this example, [Eval_numadd] returns "110.0".