Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
QuickList.And
Returns a list with values which are contained in both lists.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
List | 4.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "QuickList.And"; List1; List2 { ; ReturnNewList } ) More
Parameters
Parameter | Description | Example | Flags |
---|---|---|---|
List1 | The reference to the first quicklist. | $List1 | |
List2 | The reference to the second quicklist. | $List2 | |
ReturnNewList | Pass 1 to return result as new QuickList. This new list must be freed later using QuickList.Release function. Pass 0 (Default) to modify the list in the List1 parameter. |
0 | Optional |
Result
Returns list, OK or error.
Description
Returns a list with values which are contained in both lists.Performs a logical AND operation.
This function is made for lists without duplicate values as it checks if values from one list exists in others, which may not work correctly if one list has duplicate values.
Examples
Performs And on two quicklists:
$list1 = MBS( "QuickList.New"; "a¶b¶c¶d")
$list2 = MBS( "QuickList.New"; "a¶d")
$list3 = MBS( "QuickList.And"; $list1; $list2; 1 )
$list = MBS( "QuickList.GetList"; $list3)
$r = MBS("QuickList.Release"; $list1)
$r = MBS("QuickList.Release"; $list2)
$r = MBS("QuickList.Release"; $list3)
See also
- List.And
- QuickList.AndColumn
- QuickList.Find
- QuickList.GetList
- QuickList.New
- QuickList.Not
- QuickList.Or
- QuickList.Pop
- QuickList.Release
- QuickList.XOr
Release notes
- Version 10.0
- Added QuickList.AndColumn, QuickList.NotColumn, QuickList.OrColumn, and QuickList.XOrColumn functions.
Blog Entries
This function checks for a license.
Created 8th October 2014, last changed 20th December 2023