removeAll()
Table of Contents
Overview
The removeAll() function takes listVariable and removeListVariable as arguments. It removes the elements present in removeListVariable from listVariable.
Syntax
<listVariable>.removeAll(<removeListVariable>);
Parameter | Description | Data type |
---|---|---|
<listVariable> | The list variable from which the elements present in removeListVariable will be removed. | LIST |
<removeListVariable> | The elements present in this list will be removed from listVariable. If removeListVariable is not found, listVariable will be returned as it is. | LIST |
Examples
Products = {"Creator", "CRM", "Projects"};
removeProducts = {"CRM", "Projects"};
Products.removeAll(removeProducts); // Now Products will contain {"Creator"}
removeProducts = {"CRM", "Projects"};
Products.removeAll(removeProducts); // Now Products will contain {"Creator"}