Hi,
i really dont understand what your trying to do...so many comments
What i did now:
IF > commentCheck = 3*commentPage-2 > Do action
IF > commentCheck = 3*commentPage-1 > Do action, Do Action
IF > commentCheck = 3*commentPage > Do action, Do Action, Do Action
your changing the formula here not the variable.
The formula should stay the same you just need to change the commentPage variable.
f(x)=3x-2 is a linear function you put a x in and get a f(x)=y out.
Thats it.
Never change the parameters (3 and -2) or you will get another function or even a cluster of function if the parameter is a variable itself.
However.
So maybe you should do something like that:
on setComments:
set commentCheck to 3*commentPage-2
...........if commentCheck=1--->do something
...........if commentCheck=4--->do something
...........and so on
But as i said i dont get what your trying to do with this.
It sounds like you just want to switch to a new comment page every 3 comments?