Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Warning

Looking for the documentation on the newest versions of SIL Engine and the Simple Issue Language for Jira 8 for Server/Data Center? Click here !

Info
titleAvailability

This routine is available since katl-commons starting with SIL Engine™ 1.0.

...


Description

...

Excerpt

If index is less than the array size, returns a new array without the element at the specified index.

Alias

...

deleteElementAt(array, index)

Parameters

...

Parameter name

Type

Required

Description

array

array

Yes

The array from which

Array the element at the specified index is deleted from.

index

number

Yes

The index

Index of the element to be deleted.

Return Type

...

array

Example

...

Example 1

...

Code Block
if(size(watchers) >= 2){
	watchers2 = deleteElementAt(watchers, 1);
} 

The result returned by the routine is assigned to a new array watchers2, so the initial array watchers will not be modified.

Example 2

...

Code Block
if(size(watchers) >= 2){
	watchers = deleteElementAt(watchers, 1);
}

The result returned by the routine is assigned to the the same array watchers, so the initial array watchers will be modified.

See

...

also

Filter by label (Content by label)
showLabelsfalse
max100
showSpacefalse
cqllabel = "array_routines"
labelsarray_routines