Skip 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.

comparison "contains"?

Featured Replies

  • Newbies

i was trying to do a script that searches for text strings that contain certain character. for example if i want to find if a field contains an email address how can i do the comparison:

[if f3 "contains" @]

how can i put this into a script...

any help will be appreciated..

You need to use the "PatternCount" step. This is a great step for finding any text you want. You can anter the text - for example "@" to find emails so it would look something like this in a script: (or you could define a calculation field to filter anything you want)

-----

If

PatternCount(F3; "@")>0

End if

-----

now you would have to decide what should happen if there is a "@" present. I use this trick for filtering emails, but also use PatternCount with ".com" ".de" and also domain names etc for sorting emails. Remember, you can also use a field name instead of text, so for example:

PatternCount(F3;F4)>0

PatternCount is one of the most versitile steps. You should invest some time with this. It's explained in the FMP help file, but the basic format is:

PatternCount (Where should it look;What it should look for)it then tels you how many times it found it

Remember, your seperators are maybe different to mine ";"

PS: the other cool thing about PatternCount is that it can find returns or empty spaces, too

Hope this helps,

Rigsby

  • Author
  • Newbies

thanks Rigsby, that worked out...

cheers

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.