Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Extract all values with 4 words or more from List of Values

Featured Replies

Hi all, I hit my logical thinking-limit and FileMaker knowledge with the following, seemingly simple problem: I would like to filter a list of values to only show values with four or more words. How can I do that?

Sample Input:

Test

Test Requirement

Test Requirement Example

Test Requirement Example for

Test Requirement Example for HBS

Test Requirement Example for HBS 5.0

Expected Output:

Test Requirement Example for

Test Requirement Example for HBS

Test Requirement Example for HBS 5.0

 

 

Many thanks in advance!

1 hour ago, innodat said:

seemingly simple problem:

I don't think it's that simple. You need to loop over the values and examine each one in turn. Try:

While ( [ 
i = 1 ;
result = ""
] ; 
i ≤ ValueCount ( Input ) ; 
[ 
line = GetValue ( Input ; i ) ;
result = If ( WordCount ( line ) ≥ 4 ; List ( result ; line ) ; result ) ;
i = i + 1
] ; 
result 
)

 

 

  • Author

What would the FileMaker community do without you?? Seriously. This is amazing. Copy-pasted - works. And I learned something today. 

THANK YOU!!!!!!

Great example for using the new "while" function too.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.