[Array->RemoveAll] removes any elements that match the parameter from the array. Accepts a single parameter of any data type. Returns no value.
Note: The specified elements in the array are removed and the indexes of all elements in the array above the index are adjusted down.
[Array->(RemoveAll: 'Find Value')]
Use the [Array->RemoveAll] tag. The following example removes all entries for Friday from an array of the days of the week. The resulting array is output.
<?LassoScript
Variable: 'DaysOfWeek'=(Array: 'Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat');
$DaysOfWeek->(RemoveAll: 'Fri');
Output: $DaysOfWeek;
?>
(Array: (Sun), (Mon), (Tue), (Wed), (Thu), (Sat))
Tag Link | [Array->RemoveAll] | Category | Array |
---|---|---|---|
Type | Member | Data Source | Any |
Support | Preferred | Version | 5.0 |
Output Type | None | Security | None |
Implementation | Sets | Lasso 5.0 |
Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft