Brian Dunning's FileMaker Custom Functions

compareLists ( listA ; listB ; function )

This recursive custom function compares two lists (AND, OR, NOT, XNOT)

  Average rating: 5.0 (1 vote) Log in to vote

Kaai Hanhart   Kaai Hanhart - Show more from this author
goFlowApps
https://www.goflowapps.nl

Share on Facebook Share on Twitter

  Sample input:
compareLists ( "A¶A¶B¶C¶¶";"B¶D¶¶D¶"; "or" )
  Sample output:
A
B
C
D

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

This recursive custom function compares listA and target listB, which values overlap (AND), which values they have in common (OR), which values are only in list A (NOT) or which values are exclusively in listB (XNOT).
It cleans doubled values in both list and it neglects empty values. The result ends with an enter ¶.

Allowed values of function are
AND item in both lists
OR item in list A or in list B
NOT item is in list A but not in list B
XNOT item is in list B but not in listA;

 

Comments

Tom G   Tom G
Jan 29, 2024
I understand this is a function you developed years ago, but wondering if you have any ideas about an "XAND" function. One that lists items that are neither in listA nor listB.
Thanks
 

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 20 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: