For the complete documentation index, see llms.txt. This page is also available as Markdown.

ArrayDelete

Delete first occurance of item in array case sensitive

Method Signature

ArrayDelete(array=[modifiableArray], value=[any], scope=[string])

Arguments

Argument
Type
Required
Description
Default

array

modifiableArray

true

The array to be deleted from.

value

any

true

The value to deleted.

scope

string

false

Which matches to delete: "one" (default) deletes the first matching value, "all" deletes every matching value.

one

Examples

Delete an element from an array

Deletes the first apple element from the array arr.

Run Example

arr = [ 
	"apple",
	"orange",
	"pear",
	"Apple"
];
arrayDeleteNoCase( arr, "Apple" );
writeDump( arr );

Result: ['orange','pear','Apple']

Additional Examples

Run Example

Last updated

Was this helpful?