May 23, 200322 yr 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
May 23, 200322 yr Get rid of that "- 5". Why is it there? Where did you get the 13? The (CurrentToken:6 .eq. 8) should work.
May 23, 200322 yr 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
May 23, 200322 yr I will attack that from the other side -- embedded CDML code in JS. But maybe your way is better for your need!
Create an account or sign in to comment