mathOnNumberList()

This function returns a number list with results of the given calculation performed for each number in the specified list.


Bash
mathOnNumberList(numberList, mathExpression) #Output: Number list


Examples

Parser expression

Description

Bash
mathOnNumberList([1, 2, 3, 4, 5], {seed.number} * 2) 

This example returns the following number list: [2, 4, 6, 8, 10]

Additional information

Parameters used in this function

Parameter

Input (data type)

Description

numberList

number list

Any given number list.

mathExpression

text

A valid math expression.

Output

This function returns a number list


📚 Use cases and examples