Take

This Flow Script tutorial explains how to use the Take function with syntax and examples.

Description

The Take function returns a table where the first n rows are included in the result.

Syntax

‌The syntax for the Take function is:

Take(table, n)

Parameters

table - the table with the data.

n - the number of rows to include.

Returns

‌The Take function returns a table.

Example

Let's look at some Take function examples and explore how to use the Take function.‌

Take(colors, 2)
Result: Id: C1, Color: red & Id: C2, Color: green

Take([col: "A"] & [col: "B"] & [col: "C"], 2)
Result: [col: "A"] & [col: "B"]

Last updated