SIZE function

SIZE function

Function Name Description Usage Input parameter Return value
SIZE Counts the number of elements in an array. SIZE() N/A Total number of elements in an array.

Supported data type

The SIZE function supports the following data types:

  • Boolean array
  • Double array
  • Integer array
  • JSON
  • String array

Example 1: Find the size of a string array

Sample data: $var1$ = {"Hello", "Apigee", "Integrations"}

Usage: $var1$.SIZE()

Count the number of elements in var1.

Output: 3

Example 2: Find the size of an integer array

Sample data: $var1$ = {5,8,2,1,7}

Usage: $var1$.SIZE()

Count the number of elements in var1.

Output: 5

Recommendation

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年12月09日 UTC.