contents.gifindex.gifprev1.gifnext1.gif

Assign_To

Purpose

Assigns the result of an expression to a variable name, then returns what was assigned.

Arguments

Assign_To(

<var>
// A quoted string which is the name of a valid rules engine variable or an expression which returns a string which is a valid rules engine variable name.
, <expr>
// Sum, Count, Max, or Min.
)

Notes

This function is commonly used in complex expressions to help debug sub-expressions and to make the code easier to read by assigning values to items sequentially.

The variable name must be quoted or the variable will be treated as an expression to be evaluated. However, you can use an expression to return a variable name.

Example

Assign_To(

'Tmp_Orig_Key'

,'90276'

)

Returns: 92076 and creates a variable named Tmp_Orig_Key with a value of 90276