Trying to create what would seem to me quite easy logic, but I don't want to resort to long-winded if statements so hoping someone can supply a neat solution.
Basically imagine we have an array of variable size. Every 10th item of the array I want to set a different outputstring.
Outputstring could equal something like this: caraccessories_page1.html, caraccessories_page2.html, caraccessories_page3.html.
So if we imagine that the array size is 97 items then the final outputstring would be caracceessories_page9.html.
Within the structure I should also be able to set another string as well as the outputstring or additional code.
Longwinded Quick Example:
IF X IS BETWEEN 1 AND 10 OF ARRAY THEN
SET OUTPUTSTRING TO "caraccessories_page1.html"
ELSE IF X IS BETWEEN 11 AND 20 OF ARRAY THEN
SET OUTPUTSTRING TO "caraccessories_page2.html"
ELSE IF X IS BETWEEN 21 AND 30 OF ARRAY THEN
SET OUTPUTSTRING TO "caraccessories_page3.html"
....
etc
yuck
....
END IF
The code also needs to incorporate/handle something like this: ( || signifies a quote mark )
SET PAGEHANDLE TO "<a href="" href="" href="" href="">
^^^^^ --- this can be dynamic depending on the number of items in the array
And of course if the user is currently viewing 21-30 then the A link should not be clickable.
Hope this makes sense and look forward to anyone's help.
Rikki.