Skip to content

Use

aggregating category: aggregation no `||` resultSize: N

Selects which field or local variable becomes the output of the rule chain.

When multiple source fields map to a CDM field, or several local field variables exist, Use selects which one is committed. Use always removes the input fields and leaves only one output, even when an output field is explicitly defined. Use allows multi-sized results.

Writing Use(:Result) => :Result keeps the named field in the rule chain so it remains addressable as :Result downstream.

Parameters

1primary Mandatory — accepts: field

The field or local field variable to commit to the CDM field.

Nextras Optional — accepts: field

Additional fields or local field variables — used when committing to a multi-sized CDM field.

Input type

  • DATE
  • FLOAT
  • INT
  • STRING

Output type

Same type as the input — array-shaped when used with [].

Requires

  • Allows multi-sized results.

Examples

Single result

Use(:Result)

Multi-sized result

Use(:Result1, :Result2, :Result3)[]

Use a CDM field

Use(:location_id)

Keep the result accessible downstream

Use(:Result) => :Result

Leaves :Result in the rule chain so it can still be referenced.

See also

SetValue, IgnoreValue, Selector