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 elem is an element of the array type, returns a new array without the specified element.

Alias

...

deleteElement(arrayName, elem)

Parameters

...

Parameter name

Type

Required

Description

arrayName

array

Yes

The array from which

Array the new element is deleted from.

elem

any

Yes

The element

Element to be deleted. Must be the same type as the array type.

Return Type

...

array

Example

...

Code Block
watchers = deleteElement(watchers, currentUser());

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

Notes

...

Note
  1. If array is not defined as an array, the routine returns error.
  2. If elem is not the same type as declared in the array definition, the routine returns error.
Info
titlekatl-commons SIL Engine™ 2.5 specific

Since Starting with version 2.5, there is a more powerful way to express these operations: array = array - element; or even better array -= element;

...


See

...

also

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