StartedUsing your New Post for: Next Page - Memory Conscious, I got this error

An error occurred while processing the script: Next Page
The error message was: Encountered "( \"OFFSET\" , ( currentPage - 1 ) * offsetStep + initialOffset ;" at line 18, column 24.

In the code:
session.setVariable("OFFSET", (currentPage - 1) * offsetStep + initialOffset;

Where does OFFSET come from and where is it used...

Thanks,
Clarence

Yeah, that was sort of my

Yeah, that was sort of my fault :P I put that up recently, and I have a bad habit of not putting final parentheses at the end. I'll fix that up in the example.

OFFSET is just a variable that it's setting for your use, if you want to. You can use PAGE or OFFSET-- both are available to you.

Clarence this error is a

Clarence this error is a syntax error. It normally means that you have unmatched parentheses or a missing semi-colon at the end of a previous statement. I notice in this one you are missing a ")" just after initialOffset.

If you're using the recently released version 4.5 it's got Parenthesis matching in the script editor. Just put the cursor next to a parenthesis and it will highlight the one that the script believes is the matching one.