JitseSchaafsma Posted May 23, 2003 Posted May 23, 2003 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
Anatoli Posted May 23, 2003 Posted May 23, 2003 Get rid of that "- 5". Why is it there? Where did you get the 13? The (CurrentToken:6 .eq. 8) should work.
JitseSchaafsma Posted May 23, 2003 Author Posted May 23, 2003 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
Anatoli Posted May 23, 2003 Posted May 23, 2003 I will attack that from the other side -- embedded CDML code in JS. But maybe your way is better for your need!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now