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.

Featured Replies

I have been laying around with numerous solutions but haven found he correct one.

Is it possible to have a code like this :

[FMP-If: (CurrentToken:6 - 5 .eq. 8)]

some HTML

[FMP-If]

What is mean is ??? if Token:6 is 13 then include some HTML code.

Needless to say that CurrentToken:6 is non static

I have also tried to build a javascript that returns true are false but too no avail.

Can anyone help me on this one ?

Thanks Jitse

Get rid of that "- 5". Why is it there?

Where did you get the 13?

The (CurrentToken:6 .eq. 8) should work.

  • Author

Thank you for pointing out that i have not been clear.

My really question is how to incorparate some javascript into a FMP-IF statement.

So i am looking for the syntax on how to do something like this:

function test(var1)

{

perform a calculation

return a result

}

[FMP-IF: (javascript:test("[FMP-CurrentFoundCount]") .eq. CurrentToken:6]

some HTML

[/FMP-IF]

so my Q is : what is the correct syntax of the above code.

Thanks so much

Jitse

I will attack that from the other side -- embedded CDML code in JS.

But maybe your way is better for your need!

Curley brackets around CurrentToken:6?

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.