Skip to main content
Workday User Guide
Last Updated: 2023-06-23
WD.SLICE

WD.SLICE

Description

This function enables you to extract and return a segment of a specified array; it returns the extracted (sliced) array. Optionally you can specify indexes. Specify positive indexes to increment from the beginning of the array, or specify negative indexes to increment from the end of the array (reverse the array). The indexes are 1-based. The index value 0 isn't allowed.

Syntax

WD.SLICE(
array
, [
row_start
], [
row_end
], [
row_step
], [
column_start
], [
column_end
], [
column_step
])
  • array
    : The array to slice.
  • row_start
    : The starting row index. If omitted, the default value is 1.
  • row_end
    : The ending row index. If omitted, the default is the current number of rows in the specified range.
  • row_step
    : The row step index. If omitted, the default value is 1.
  • column_start
    : The starting column index. If omitted, the default value is 1.
  • column_end
    : The ending column index. If omitted, the default is the current number of columns in the specified range.
  • column_step
    : The column step index. If omitted, the default value is 1.