Skip to main content
Skip table of contents

apply Statement

Syntax

apply operationName (element [, additionalParameter]) to destinationArrayName

Semantics

Applies an action script operation or class operation (operationName) to each element of an array (destinationArrayName).
element is a keyword and denotes any single element of destinationArrayName.

Substitutables

operationName

Can be any action script operation or class operation name.

anArray, destinationArrayName

Can be any variable or object attribute having the type Array.

Examples

NONE
set changedElements = apply concat(element, "_x") to inputContainer.myList;
set normalizedElements = apply normalizeSpaces(element) to inputContainer.myList;
apply element.calculateAmmount() to exchangesList;
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.