Brian Dunning's FileMaker Custom Functions

c_AlternateValues ( theList ; oddOrEven )

Extracts the Odd or Even Values from a List

  Average rating: 4.6 (24 votes) Log in to vote

Andrew Burt   Andrew Burt
None
http://www.google.com

Share on Facebook Share on Twitter

  Sample input:
c_AlternateValues ( "Olive Oil¶Diced Tomato¶Onion¶Lentils¶Chicken¶Cream" ; 1 )
  Sample output:
Olive Oil
Onion
Chicken

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

Used for splitting 1 list into 2 columns for displaying on a layout. Could be adapted to split into additional columns

 

Comments

belg4mit   belg4mit
Mar 15, 2023
In an effort to try to help others find this function, a common name for this sort of thing is 'unzip'; zip two lists together by alternating values from one then the other, and unzip is the reverse
 

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: