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.

more if statments in one if statment?

Featured Replies

I can't find how to this. I looked in the CDML references database, this forum and google.

I'm not sure what you mean by "more if statments in one if statment".

[fmp-if: xxx .yy. uuu]

[fmp-else]

[fmp-if: aaa .cc. ddd] <!--these two lines in FMPro 4.0-->

<!--or-->

[fmp-elseif: aaa .cc. ddd] <!--just this one line FMPro 5.0+-->

[/fmp-if]

[/fmp-if]

Make sure you close each if-conditional.

I believe you can also use this boolean structure:

[FMP-If: (Field:Field1.eq.Value1).or.(Field:Field2.eq.Value2)]

.

.

.

[/FMP-If]

You can also use .and. as a boolean operator. It's been awhile since I've used this technique; your results may vary.

  • Author

I mean like:

[FMP-If: this .neq. that & he .eq. hi]

funny ain't it? :-)

[/FMP-If]

This is an example of a fairly complex conditional I use with Lasso

[if: (((Field:'area1status') == 'Complete') && ((Field:'area4status') == 'Complete')) && ((((Field:'area2status') == 'Complete') && ((Field:'area3status') == 'Complete')) || ((Field:'area5status') == 'Complete'))]

The syntax is slightly different FMP-If etc. but the same structure should work using your example

[FMP-If: this .neq. that & he .eq. hi]

Using symbols im used to would equal

[FMP-If: (this != that) && (he == hi)]

or this may be more successful

[FMP-If: (this.neq.that) && (he.eq.hi)]

give it a go my FMPro syntax is a little rusty but the theory is sound. I think if you re-read the bridge's post he already told u this

smile.gifcool.gif

You can use:

[FMP-If: (Field:name.Eq.david).or.(Field:name.Eq.dave)]

Welcome David!

[FMP-ElseIf: Field:name.Eq.eric]

Hi Eric!

[FMP-Else]

Hi Stranger!

[/FMP-If]

This is straight from the FM site Knowledgebase article #106550

All the best.

Garry

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.