Question: I'm trying to make a chain that automatically calculates the #percentread on paper books by taking an inputted current page number and calculating that against the pagecount.
I thought I could do this with chain variables, but I think I'm misunderstanding the documentation.
The first action is to set a chain variable called 'pagenum.' I left the template blank.
The second action is to then run this template:
Code:
program:
totalpage = $#pagecount;
pagenum = globals(pagenum);
newpercent = round(multiply ((totalpage / pagenum), 100));
However, when I try this I get
EXCEPTION: Interpreter: Error during operator evaluation: operator '/' - line number 4 and it won't let me save it.