[array->find] returns an array of elements that match the parameter.
Accepts a single parameter of any data type. If the array contains any pair values, only the first part of the pair is compared with the parameter of the [array->find] method.
If no elements in the array match the parameter to the [array->find] method then an empty array is returned.
Use the [array->find] method with the value of the first element of the pairs that should be returned from the array.
The following example shows an array of pairs returned from the tag, each of which has a first element of 'John Doe'.
var( People_Array = array('John Doe' = 'Person One', 'Jane Doe' = 'Person Two', 'Joe Surname' = 'Person Three', 'John Doe' = 'Person Four') ) $People_Array->find('John Doe')
array((John Doe = Person One), (John Doe = Person Four))
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