Skip to end of banner
Go to start of banner

arrayDiff

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 11 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 since SIL Engine™ 2.5.15 / 2.6.

Syntax

arrayDiff(arrayName1, arrayName2)

Description

Difference between two arrays. Returns the elements from the first array that do not exist in the second array.

Return Type

array

Example

Example 1

string[] array1 = {"a", "b", "c"};
string[] array2 = {"c", "d"};
return arrayDiff(array1, array2); 

The result will be an array containing elements "a" and "b".

Example 2

string[] developers= usersInGroups({"jira-developers"});
string[] administrators = usersInGroups({"jira-administrators"});
return arrayDiff(developers, administrators);

The result is an array that contains only developers that are not also administrators.

See also


  • No labels