Choose where you’d like to start

removeElement()

Overview

The removeElement() function takes listVariable and searchElement as arguments, and removes the searchElement from listVariable.

Syntax

<listVariable>.removeElement(<searchElement>);
ParameterDescriptionData type
<listVariable>The list variable from which the element will be removed.LIST
<listVariable>

The element to be removed from the list.

If the searchElement is not found, the list is returned as it is.

If the list is a data type specific list, the data type of the specified value must match the data type of the list. If not, a runtime error will be encountered.

AS APPLICABLE

Examples

Product = {"Creator", "CRM", "Projects"};
Product.removeElement("CRM");                        // Now the list will contain {"Creator", "Projects"}

Get Started Now

Execute