Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

FMP-If .and. question


This topic is 7859 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This topic is 7859 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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