Skip to end of banner
Go to start of banner

arrayKeys

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Current »

Looking for the documentation on the newest versions of SIL Engine and the Simple Issue Language for Jira 8? Click here and leave these dusty old pages behind!

Availability

This routine is available starting with katl-commons 2.5.8.

Syntax

arrayKeys(array)

Description

Returns the keys of the array, if array is using the new syntax in version 2.5.

Keys are not sorted and index in the returned array does not correspond to index in the original array. The routine only returns a list of added keys.

If the array contains no keys an empty array is returned.

Parameters

Parameter name

Type

Required

Description

array

array

Yes

Array.

Return Type

array of strings

Example

number []arr;
arr["one"] = 1;
arr["two"] = 2;
arr["three"] = 3;
arr[3] = 4;

string [] arrkeys = arrayKeys(arr); // contains strings 'one', 'two', 'three' but not necessary in that order !

 

See also

 

  • No labels