Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Looking to define a next button based on ID variable


I have a network of passages but I want to define an A-to-Z order with Next and Prev buttons so I need to define the 'order' value of each... how is this best done so I can automate the coding of the Next and Prev buttons?

Ps. I'm using Harlow



  • Put 'em in an array? If you're in passage 4, next takes you to 5, prev to 3.

    Set up an index JSON object with next and prev fields? (easy enough to procedurally initialize if the passage names follow a formula - otherwise you'll need to hard code an exhaustive static initializer)
Sign In or Register to comment.