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.

Matching nunmbers but not text

Featured Replies

I have two tables, Collections and Restrictions, which are related via a unique ID string (CollectionID). For most of the records, the ID is numeric but for a few it's alpha. When viewing the Collection table, I have a script that when activated should display a dialog box showing related information from the Restrictions table. Not all collections have restrictions, so the script looks like this:

[color:blue]If [Restrictions::CollectionID]

Show Custom Dialog [ Title: Collection::collection_title&" -- "&Restrictions::restr_type; Message: Restrictions::restr_text; Buttons: "OK"]

End If

When the ID is numeric, it works great. When the ID is alphabetic, it doesn't work. Is the test I'm using only for numeric data? What do I need to change so that it works? Thanks!

Is the test I'm using only for numeric data?

Yes. Actually, it's for numeric data that's not empty or zero.

What do I need to change so that it works?

Try:

not IsEmpty ( Restrictions::CollectionID )

Well if it is alphanumeric it will work. But just alpha no. Instead use If [ IsEmpty ( Restrictions::CollectionID) ] to see if the field is not empty.

Yes. Actually, it's for numeric data that's not empty or zero.

A matter of wording only but sliding the word NOT in there might help.

Actually, it's for numeric data that's not empty or NOT zero.

I only mention it because I did a double-take when I first read it and someone else might misunderstand. :wink2:

UPDATE: Or write it as: not ( empty or zero) :wink2:

Edited by Guest
Added Update

Right, human language is not as precise as mathematical notation. For example, I did a double-take at your using "or" instead of "and" because:

not ( empty or zero ) = not empty and not zero

:jester: :beertime:

  • Author

w00t! You guys are great (and speedy) -- works like a charm, thanks :

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.