Simple math in Lectora vars?

I was just wondering. Our company(me ) build courses that may very well exceed 200 pages. Now when I build in progress, I usually set 4 variables for modification of AICC_Score, for 25-50-75 and 100 procent completed. This is a matter of guessing, or simply dividing all the pages in the course by 4, and put a variable on each of those pages.I was wondering if there was no quicker and less time consuming way. With a basic programming background I came up with a little mathematic function. Very basic and easy if you ask me:1 Variable to count all the pages in the course. "varAllPage"1 Variable to keep track of the current page the user is on."varCurrentPage"And finally one variable to put the score in, when pressing the exit button."varScoreOnExit"Then it would all be basic math like this:varScoreOnExit = varCurrentPage * (varAllPage/100)However, I cannot seem to do basic math. I have tried to put some of it into variables on set actions (like this : VAR(variablename)/100, but it only posts the exact text. When I only type VAR(variablename), then it gives me a number, like it should. It seems that math is not possible inside variable decleration, and/or modification.Is there a way to use basic math after all? I do not need anything more complex then this right now, just dividing, multiplying, substracting and adding. Edited By: Ludo on 2007-4-20 4:10:37

Discussions have been disabled for this post