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.

Conditional IF Statements?

Featured Replies

I've got a situation in a results page where I need to say, "If THIS *or* THAT, then do THE OTHER."

I tried putting a Boolean operator into the FMP-IF statement, but it didn't work. Specifically:

[FMP-If:FMP-Field: PHONE.cn.NOT or LISTDATA.cn.N]

Hmmm . . . maybe it should be:

[FMP-If:FMP-Field: PHONE.cn.NOT or FMP-Field: LISTDATA.cn.N]

??

Or maybe I could NEST the IF statements?

Thanks.

--Jeremy

  • Newbies

I think you just can make it without Fmp-field:

[FMP-If:PHONE.cn.NOT or LISTDATA.cn.N]

Try

  • Author

quote:

Originally posted by hel_sam:

I think you just can make it without Fmp-field:

[FMP-If:PHONE.cn.NOT or LISTDATA.cn.N]

Try


Well, sir, that didn't work, BUT I found that I could NEST IF statements (see below), which accomplished the task!

Thanks for the suggestion.

[FMP-record] [FMP-If: LISTDATA.cn.N] (Your search found an SCS member who has elected not to be listed in the directory.) [FMP-Else] [FMP-If: PHONE.cn.NOT] (Your search found an SCS member who has elected not to be listed in the directory.) [FMP-Else] [FMP-field: FIRSTNAM] [FMP-field: LASTNAM]

[FMP-If:FMP-Field: NAMEB.ncn.*] [FMP-Field: NAMEB]

[/FMP-If] [FMP-If: ADDRA.ncn.*] [FMP-Field: ADDRA] [/FMP-If]

[FMP-If:FMP-Field: ADDRB.ncn.*] [FMP-Field: ADDRB]

[/FMP-If] [FMP-Field: CITZIP] [FMP-Field: COUNTRY]

[FMP-If:FMP-Field: PHONE.ncn.*] Phone: [FMP-Field: PHONE]

[/FMP-If] [FMP-If:FMP-Field: FAX.ncn.*] Fax: [FMP-Field: FAX]

[/FMP-If] [FMP-If:FMP-Field: EMAIL.ncn.*] E-Mail: [FMP-Field: EMAIL]

[/FMP-If] [/FMP-If] [/FMP-If]

[/FMP-record]

  • 2 weeks later...

I took this tag from the CDML tool. maybe it can help with the nesting and improve speed of the script.

[FMP-If: ClientAddress .eq. *.filemaker.com, *.newton.com, *.next.com, *.apple.com]

Ask about Apple employee discounts.

[/FMP-If]

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.