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.

FMP-If .and. question

Featured Replies

Hi there,

I got a little problem bothering me for a while now, I've tried everything to fix it, but I'm still stuck, need help please !

Here goes, in my result file I need to simply check if the value in a field is equal to a certain value, an example will be easier :

[FMP-If: Field: etablissement.cn.Centrale des Syndicats (CDS)]

As you can see, my value is composed of multiple words, so I tried to fix everything using this form ???

[FMP-If: (Field: etablissement.cn.Centrale) .and.(Field: etablissement.cn.Syndicats).and.(Field: etablissement.cn.(CDS))]

Problem is, even if the value in the field and my literal value match, my If rejects the value.

Am I doing something wrong ?

Funny thing is that for a 2 word literal value, it does work !

Hope someone's going to be able to help me.

Thx a lot,

Jerry

Hi Jerry,

Instead of

[FMP-If: Field: etablissement.cn.Centrale des Syndicats (CDS)]

try

[FMP-If: etablissement.cn.Centrale des Syndicats (CDS)]

Best of luck.

  • Author

Thx a lot for the suggestion, I didn't know that the "Field:" was optionnal smile.gif

But actually my problem was of a different nature, I didn't think about the latin accented characters, I tried to substitue an "

Hi, the syntax for fields in an 'If' is very badly documented

Filemaker expects:

field.operator.literal_text

in an 'If'. It ignores word spaces.

to use a field as the last part, the syntax is:

[FMP-If:myfield1.op.Field:myfield2]

i think that:

[FMP-If:myfield.op.{FMP-Field:myfield2}]

does not work

regards, jeff

  • Author

Thx Jeff,

I actually found out how to make things work, for example, if I need to do a search on a student supervisor and say the year of the obtention of the diploma, I just build my results.htm file like this :

[FMP-If: (Field:direction.cn.name).and.(Field:direction.cn.surname).and.(Field:Depot_final_ann.cn.1992)]

and it works great.

So thx for your suggestion, it was the good one wink.gif

Jerry

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.