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.

FMP-If....FMP-Else

Featured Replies

I'm trying to create an FMP-If..... FMP-Else.... statement to do the following;

If the field 'Abstract' is empty (contains no text), to return the value 'Not available'.

If the field 'Abstract' isn't empty (contains text), to return the value 'View' as a hyperlink to another page.

The same applies to a second field, called URL.

Is this possible?

You might find the Sample File Forum useful or not.

Try creating a boolean caculation, cIsEmpty, that tests for the empty field.

[FMP-IF cIsEmpty.eq.1]

Not available

[FMP-ELSE]

View

[/FMP-IF]

From CDML reference database:

[FMP-If: ClientUserName .neq.]

Everyone who has entered a user name will see this message.

[/FMP-If]

OR

[FMP-If: Abstract .eq.]

Not Available

[FMP-Else]

<a href="[FMP-Field:Abstract]">View</a>

[/FMP-If]

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.

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.