| Components | All | New | MacOS | Windows | Linux | iOS | ||||
| Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old | |
QuickList.FindUnequals
Finds unequal items in both lists.
| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
| List | 4.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "QuickList.FindUnequals"; List1; List2 { ; ReturnNewList; NotFromSecondList } ) 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 |
| NotFromSecondList | Pass 1 to only returns items from first list not present in second list. Default is 0 to get items from both lists. |
0 | Optional |
Result
Returns list, OK or error.
Description
Finds unequal items in both lists.Examples
Find entries only in the first list:
# all customers and customers who ordered
Set Variable [ $all ; Value: MBS( "QuickList.New"; "Anna¶Ben¶Chris¶Dana" ) ]
Set Variable [ $ordered ; Value: MBS( "QuickList.New"; "Ben¶Dana" ) ]
# new list (1) with items only from the first list (1)
Set Variable [ $missing ; Value: MBS( "QuickList.FindUnequals"; $all; $ordered; 1; 1 ) ]
# Anna and Chris
Set Variable [ $text ; Value: MBS( "QuickList.GetList"; $missing ) ]
Set Variable [ $r ; Value: MBS( "QuickList.Release"; $all ) ]
Set Variable [ $r ; Value: MBS( "QuickList.Release"; $ordered ) ]
Set Variable [ $r ; Value: MBS( "QuickList.Release"; $missing ) ]
Set Variable [ $all ; Value: MBS( "QuickList.New"; "Anna¶Ben¶Chris¶Dana" ) ]
Set Variable [ $ordered ; Value: MBS( "QuickList.New"; "Ben¶Dana" ) ]
# new list (1) with items only from the first list (1)
Set Variable [ $missing ; Value: MBS( "QuickList.FindUnequals"; $all; $ordered; 1; 1 ) ]
# Anna and Chris
Set Variable [ $text ; Value: MBS( "QuickList.GetList"; $missing ) ]
Set Variable [ $r ; Value: MBS( "QuickList.Release"; $all ) ]
Set Variable [ $r ; Value: MBS( "QuickList.Release"; $ordered ) ]
Set Variable [ $r ; Value: MBS( "QuickList.Release"; $missing ) ]
See also
- List.Find
- List.FindUnequals
- QuickList.Find
- QuickList.FindEquals
- QuickList.GetList
- QuickList.New
- QuickList.Release
Release notes
- Version 7.3
- Added parameter for QuickList.FindUnequals and List.FindUnequals to only return items from first list.
Blog Entries
Created 8th October 2014, last changed 6th November 2026
MarkDown version: QuickListFindUnequals.md