Jump to content

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

Recommended Posts

Posted

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

Posted

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

This topic is 7924 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.