LIMIT=RECORD_LIMIT

LIMIT=OFFSET|RECORD_LIMIT


A limit allows you to restrict the number of records being displayed. It is most useful when combined with sorting.


Limit always takes the number of records you want to display. You may optionally provide it with an offset to indicate what record you want to start at. Offset may be negative to start at the end of the records and work backwards.



Examples:

#display first 10 records

{|LOOP|RESULT.DATAPOINTS(LIMIT=10)}


#display 10 records starting at record 50

{|LOOP|RESULT.DATAPOINTS(LIMIT=50|10)}


#display last 10 records

{|LOOP|RESULT.DATAPOINTS(LIMIT=-10|10)}


#display top 10 locations by score

{|LOOP|RESULT.LOCATION(SORT=AVG(SCORE)|DESC,LIMIT=10)}