RulePoint
- RulePoint 6.1.2
- All Products
list2vars(result,tempvar1,[tempvar2],...,[tempvarn])
Argument
| Required
Optional
| Description
|
---|---|---|
result
| Required
| Result list obtained from another analytic or from an event set.
|
tempvar1
| Required
| Temporary variable that holds the first value of the list.
|
tempvar2,...,tempvar n | Optional
| tempvar2 to tempvar n that holds 2nd value to nth value in the list.
|
when 3 stock s with list2vars(s.price, a, b, c) then response with body =”value of temporary variable a is ${a}, b value is ${b} and c value is ${c} “
Event Property Value
| Description
| Result
|
---|---|---|
s.price[2]=10 s.price[1]=20 s.price[0]=30
| Assigns values for temporary variables from the latest to the oldest. The first (oldest) event value is assigned to C and the third (latest) event value is assigned to A.
| ${a} resolves to 30
${b} resolves to 20
${c} resolves to 10
|
when 1 card c WITH sqlgetAccountInfo(c.customerID) as result != "" AND list2vars(result, FirstName, LastName, AcctID, PurchaseLimit, CardType) then response with body =”value of FirstName is ${FirstName} ,
Event Property Value
| Description
| Result
|
---|---|---|
First Name=John
Last Name=Watson
Account ID=12345
Purchase Limit=1000
CardType=credit
| Returns a list and the values are assigned to temporary variables.
| FirstName=John
LastName= Watson
AcctID=12345
PurchaseLimit=1000
CardType= credit
|