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.

Need help comparing field to Value List...

Featured Replies

  • Newbies

I have a Value List with names of our "partners" (each name on separate line).

I have a database with a "name" field. 

I'm just trying to setup a script to run and check if the "name" matches a names on the "partners" value list. But, no matter what I try, it never comes back as "true." 

Any advise? Does this look correct below? Each time, the result is "0" not "1." 

FilterValues(ValueListItems(Get(FileName);"Partners");Data Recovery Log Excel export Converted::Name)

 

Thank you for your help! 

Brian

No, that is not correct, and as currently written, 1 or 0 cannot be the result of your calculation. 

If "Jones" is one of the values in the value list; and "Jones" is in the Excel name field; then the result of your calculation will be "Jones"

If written this way, then the result should be what you are looking for.

GetAsBoolean( ValueCount( FilterValues(ValueListItems(Get(FileName);"Partners");Data Recovery Log Excel export Converted::Name)))

  • Author
  • Newbies

Thank you so much! Wish I asked this 3 hours ago! ValueCount is the key I think (as I tried various getasbooleans before, but never ValueCount). Thanks again!!

1 hour ago, Brian Cometa said:

FilterValues(ValueListItems(Get(FileName);"Partners");Data Recovery Log Excel export Converted::Name)

To make this return a Boolean result, you can wrap it in IsEmpty(). Or - if you prefer - not IsEmpty().

In addition, FilterValues ( item ; list ) is faster that FilterValues ( list ; item ).

 

 

Edited by comment

  • Author
  • Newbies

Cool, thanks! 

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.